in reply to Re: counting matches in a line
in thread counting matches in a line

this also works perfect in ranking number of occurances and simplifies