Bloomberg Interview Question

Write code to count the number of repeated values in an array