Python function to find the number of occurrences in a string code example Example: python count character occurrences str1.count("a")