is there a way to check the number of differente characters in python code example Example: python count character occurrences str1.count("a")