What i am trying to do is to count all duplicates in array and show them as number.
Eg:
array('fish','dog','pants','male','fish','fish','m ale')

I need to echo 3 fishes and 2 males

Note : I don't know the array content,neither the searching string.The function has to search for duplicates between the array values.