Implemented wordOccurrences method
Implemented sentenceOccurrences method