added count for number of words in file