Overlapping sets and counting