Word Frequency Counter: Swift