Meta Interview Question

Count number of occurrences in an array