結果 : counting frequencies of array elements in python