Count points inside a TGraph curve

You can create a graphical cut from the contour points and then check the other points with IsInside: