count_matches(pattern, a_text)
Returns the number of matches of the regular expression in the text.
integer