def count_sequences(fasta_file: str) -> int:
    """Count sequences in a fasta file."""
    n = 0
    with open(fasta_file, "r") as file:
        for line in file:
            if line.startswith(">"):
                n += 1
    return n