def line_count(path: str) -> int:
    """
    Return the number of lines in the file at `path`.
    :param path The path to the file of interest
    :return The number of lines in the file
    """
    return sum(1 for _ in open(path, "r", encoding="latin-1"))