Returns the number of capturing subpatterns in the pattern.
a Regex
the number of capturing subpatterns