Add support for count and negate

per regex ` ### COUNT X` support (regex has to match X times)
negate support flag for all regex in unittest file
This belongs into the `try` block. If there is an exception, there will be no valid `r`.