The MatchAll function returns a table. The table has records with two columns, the FullMatch and the character location. We only care about the number of full matches and we first filter that to make sure we have no blank full matches, then count the number of rows.