count unique characters in string python