def count_num_peps(filename):
    """
    Count the number of peptide sequences in FASTA file.
    """
    with open(filename) as f:
        counter = 0
        for line in f:
            if line.startswith(">"):
                counter += 1
    return counter