Report question

Question: How to count the number of occurrences of each item in an array?