結果 : how to code a counter in python