def wc(fn):
    """"
    Count the number of lines, words, and
    characters in file fn.
    """
    nlines = nwords = nchars = 0
    for line in open(fn):
        nlines += 1
        nwords += len(line.split())
        nchars += len(line)
    return nlines, nwords, nchars
