結果 : how to calculate frequency in python