結果 : count number of consecutive occurrences python