PR/333: Be more precise about counting the strength of a regex, by counting the
number of actual matching characters specified in them.