If you want to get duplicate values count in an array,this method can be use easily.It will display array values all count.