結果 : how to count the duplicate values in array in java