int String.count(string haystack, string needle)
Count the number of non-overlapping times the string needle occurrs in the string haystack .
search() , `/()