def METHOD_NAME(filename, cache={}):
    if filename in cache:
        return cache[filename]
    file_size = int(os.popen("wc -l < %s" % filename).read())
    cache[filename] = file_size
    return file_size