Updated code to generate wordcounts for stats grads.