First version of word frequency analysis