Limiting the counts of images used for similarity comparisons