結果 : count consecutive characters in a string python