check intersect: counts line numbers first