updating custom wordcount, to compute histogram of word lengths.