count

Creates an object with counts of occurrences of items in the array.

Example