結果 : how to count consecutive numbers in python