Write a function to count the occurrences of a specific substring within a larger string (for example, finding the occurrences of "abc" in "abc34abccde" should output 2).
Problem
Write a function to count the occurrences of a specific substring within a larger string (for example, finding the occurrences of "abc" in "abc34abccde" should output 2).
Your answer
Try one AI text evaluation on us
Get structured feedback, scored against a 4-axis rubric. Premium unlocks unlimited.