Tally

Tally[ list ]

Tally[ list ] returns a list of {key,value} pairs where the keys are the unique elements in list and the values are the occurrence count of this element in the list.

Example in out
The tally of the elements in {b,a,b,c,d,a}. Tally[ {b,a,b,c,d,a} ] { { b,2 }, { a, 2 }, { c, 1 }, { d, 1} }