add counts of words and docs