Code for Counting Top 10 Most Frequently Occuring Words in a String