in reply to Counting unique instances from Array Sort
See the question "How can I print out a word-frequency or line-frequency summary?" in perlfaq6.