結果 : get count of repeated values in array javascript