結果 : number of occurrences in array java