Answer:
Written in Python:
def strings2(str1,str2):
count = str1.count(str2)
print("The count is:", count)
Explanation:
This line defines the function
def strings2(str1,str2):
The line counts the number occurrence of the substring (str2) in the main string (str1)
count = str1.count(str2)
This line prints the number of occurence
print("The count is:", count)