wordOccurrences and sentenceOccurences implemented