given an input string count occurrences of all characters within a string in python code example Example: python count character occurrences str1.count("a")