結果 : find number of duplicate elements in array javascript