added regex example of word frequencies