結果 : count duplicate characters in a string python