Getting the number of control points of the objects in the file

Hello Guys,
Do you have an idea on how to get the number of Control Points of the nurb geometry using the API ?

Thank you in Advance !.

Best,
Ghaith

Hello - try NurbsSurface.Points.Count

https://developer.rhino3d.com/api/RhinoCommon/html/P_Rhino_Geometry_NurbsSurface_Points.htm

https://developer.rhino3d.com/api/RhinoCommon/html/T_Rhino_Geometry_Collections_NurbsSurfacePointList.htm

Or in rs -
https://developer.rhino3d.com/api/RhinoScriptSyntax/#surface-SurfacePoints
-Pascal