Counts lines, words, and characters in input. Section 1.5.4, page 20