def get_read_num_from_fasta(fn):
    """
    Collects the number of reads in a fasta file.
    """
    count = 0
    with open(fn, 'r') as f:
        for line in f:
            if line.startswith('>'):
                count += 1
    return count