Frequency of words counting in a "document" implementation for evernote challenge