結果 : how to count character occurrences in a given string python