Gen points, joins in lines and counts intersections