Thanks. How can I inspect the count of each element while building the array?
I am using 'push' to create the array by reading from a CSV. I guess I would then have to dynamically create a dictionary and then set counter against each.
Comment on Re^2: find maximum occuring element in a array
Do it while you're pushing. You can run several lines of code on each piece of data or add each piece to multiple data structures. You can do whatever you want in order to get where you're going.