in reply to Counting matches and removing duplicates
Hi,You could put the results in a hash with the entities as keys and the counts as values, incrementing as you go along.
Hope this helps!