def get_csv_length(path):
    """
    Get the number of lines of the specified file

    :param path: path to the file to analyse
    :type path: str

    :return: the number of lines in the csv
    :rtype: int
    """

    with open(path) as filename:
        return len(list(filename.readlines()))