prints histogram of characters in each word