結果 : count occurrences of character in a string python