check the number of times a string contains python code example
Example: count in python
it counts the number of elements in the list or in the string(words)
it counts the number of elements in the list or in the string(words)