Add a word frequency counter