The 10 most frequent words in ../data/cs21/novels/anonymous_beer.txt are: Frequency | Word ----------|------------------------- 300 | of 300 | beer 297 | bottles 201 | the 200 | on 200 | wall 99 | take 99 | one 99 | down 99 | pass
Note: The order that items with the same count are displayed is irrelevant. It does not matter if you display "beer" or "of" first in your output. Also, there are six words with count 99 ("around", "down", "it", "one", "pass" and "take"). Since you are only displaying the top 10, you can only show 4 of these 6 words. It does not matter which 6 you show or what order you show them in.