from typing import Counter


def counted_lines_of_file(path):
    """
    Return a dict keyed on the lines of the file, with values being the number
    of times that line was seen.
    """
    print(f"Reading {path}")
    with open(path) as fp:
        fp.readline()  # burn the header row
        counted = Counter(fp)
    return {k.rstrip(): v for k, v in counted.items()}