Huge speed boost counting unique matches only once.