regex: added counted repetition
tests: added tests for counted iteration