We can count the number of regexp matches (real and cached) in the applier, this can be used in tests.