what does str.count do code example
Example 1: count in python string
string.count(substring, start, end)
# Start and end is optional
Example 2: python count character occurrences
str1.count("a")
string.count(substring, start, end)
# Start and end is optional
str1.count("a")