Count the number of distinct entries i the specified array, optionally provide a map function that returns the value making an object unique.
iterable object or array
Optional
unique key fn
Count the number of distinct entries i the specified array, optionally provide a map function that returns the value making an object unique.