結果 : number of repeated characters in a string python