occurrences

fun String.occurrences(pattern: String): Int