local counter, loop through string, test with criteria.