The size method returns the total number of sub matches made for the current match, including the whole match (sub match 0).
size
size()
(Number). The number of sub matches for the current match.