def count_vars_vcf(vcf_path):
    """ Counts the number of variants in a VCF file.
    """
    in_file = open(vcf_path)
    num_records = 0
    for line in in_file:
        if line.startswith('#'):
            continue
        num_records += 1
    return num_records