結果 : count number of duplicate characters in a string python