結果 : count occurrences of each character in string python without using dictionary