I have an array which contains the following results
red red red blue blue Green White Grey
and I want to get duplicate count of every val
make another array of counts ....and loop on the original array putting a condition that if it found red increment the 1st cell of the count array ...if it found blue increment the second cell in the count array ....etc. Good Luck .