The Tally Method

Quickly transform your collections into hashes where the key is the element, and the value is the count of the times it occurred.