結果 : count occurrences of characters in string python