Es6 count occurrences in array

Print it