Count the number of times each character appears in the string pyhton code example Example: python count how many times a character appears in a string string.count('a')