def parse_ibzkpts(ibz_file):
    """
    Parameters
    ----------
    ibz_file: str
        Path to VASP IBZKPTS file.

    Returns
    -------
    kpoint_count: int
        Number of kpoints used in the vasp simulation.
    """
    kpoint_count = None
    linecount = 0
    with open(ibz_file) as f:
        for line in f:
            if linecount == 1:
                kpoint_count = int(float(line.strip()))
                break
            linecount += 1
    return kpoint_count