Write a program to accept a string and a substring and count the number of times the substring occurs. Find function in Python.
A) count(substring)
B) substring.count()
C) count_occurrences(string, substring)
D) string.find(substring)
E) substring_frequency(string, substring)