counts words and prints top 5