"""Use String functions: Count substring in given string
str1 = "ababadbabdfabefbabab"
str2 = "ab"""

# define string
string = "ababadbabdfabefbabab"
substring = "ab"

count = string.count(substring)

print("The count is:", count)
