結果 : get count of duplicate values in array javascript