Changes the iterative CountOverlaps() to return count in the last check instead of 0