def wc_line(filename):
    """
    Returns a count of the number of lines in the file, similar to the command
    line utility `wc -l`.
    """

    with open(filename, 'r') as fh:
        count = sum(1 for _ in fh)
    return count