結果 : number of occurrences in an array python