add word frequencies