def getNumberOfIntersectionsToLeftOfLoops(loops, point):
 totalNumberOfIntersectionsToLeft = 0
 for loop in loops:
  totalNumberOfIntersectionsToLeft += getNumberOfIntersectionsToLeft(loop, point)
 return totalNumberOfIntersectionsToLeft

def getNumberOfIntersectionsToLeftOfLoops ( loops , point ) : totalNumberOfIntersectionsToLeft = 0 for loop in loops : totalNumberOfIntersectionsToLeft += getNumberOfIntersectionsToLeft ( loop , point ) return totalNumberOfIntersectionsToLeft
get the number of intersections through the loop for the line starting from the left point and going left .