To find the length of a line and number of word in a line