結果 : finding the frequency of elements in an array in python