Bag of words calculation, word count calculation