Practice to count number of words in file