returning word frequencies in addition to counts