int countOccurrences(String subString) { if (isNull) return 0; return subString.allMatches(this!).length; }