python - cont how many times a character is present code example Example: python count character occurrences str1.count("a")