結果 : how to count consecutive characters in a string in python