結果 : javascript map count occurrences in array