Skip links

PHP get duplicate values count in an array