function that counts how many times each char appears python code example Example: python count how many times a character appears in a string string.count('a')