Implemented wordOccurrences