how to write a function that counts how many times a substring occurs in a strring code example
Example: check how many times a substring appears in a string
a = '128532012'
print(a.count('0'))
#Prints: 1
print(a.count('12'))
#Prints: 2
a = '128532012'
print(a.count('0'))
#Prints: 1
print(a.count('12'))
#Prints: 2