import glob


def get_num_files(start_year, end_year, perf_dir):
    """
    Get number of files to read given start_year
    end_year and path to performance files
    """
    count = 0
    for year in range(start_year, end_year + 1):
        count += len(glob.glob(perf_dir + f"/*{year}*"))
    return count