in reply to counting matches in a line

never mind, i just noticed somebody asked this exact same question