from pathlib import Path


def multiplier(p: Path) -> int:
    """
    Count the  lines in a file
    :param p: the Path of the file
    :return: the number of lines
    """
    tot = 0
    for _ in open(p):
        tot += 1
    return tot