Should be able to... check the dictionary to see if the key exists, if it does, +1 the value, if not, add it and set the count to 1.
There may even be a way to use linq to aggregate the data for you and return an array.

-tg