It counts the occurrences of a given substring in a text.
the number of occurrences of the substring.
the substring to count.