Support for count in regex

Improve readability of regex