image for countOverlaps approach