Simple way to count string occurrences for testing.
The text to search within.
The substring to count occurrences of.
How many times search occurs in content.
Simple way to count string occurrences for testing.