How to count occurrences for each values in an array?

Well,

I usually take this way to solve this requirement (via JS):

Saludos!

1 Like