def _get_num_reads(ngs_alignment):
    """ Returns the number of reads in the template of an NCBI/NGS alignment

    Args:
        ngs_alignment (ngs.Alignment): aligned read

    Returns:
        int: the number of reads in the template

    """
    if ngs_alignment.hasMate():
        return(2)
    else:
        return(1)