Objective-C Version of the Word Frequency Counter