in reply to Re: counter for each regex match.
in thread counter for each regex match.

Thanks for the  ++$count; tip :)