How about introducing enum instead of boolean here?
``` java
Strings.numberOfOccurrences(sourceObject, sequence, IGNORE_REGEXP)
```