If you had many sheets of paper in front of you and each sheet contained a list of parts and one part could be found in multiple places, how could I get a count of all the parts.
I.E.
with array:
array('orange','banana','orange')
I want to get:
orange: 2
banana: 1
I.E.
with array:
array('orange','banana','orange')
I want to get:
orange: 2
banana: 1