Count and analyze frequency of words in given contents