結果 : count repeated elements in array javascript