countOccurrences

Counts the non-overlapping occurrences of substring in this string.

Returns 0 when substring is empty or does not occur.