[Python] How to get number of columns and rows of control points

Let’s say I grab a control point and I know the ID of the surface this control point comes from.

I realized that control points don’t have UV coordinates but instead they have a number.

Question is how can I get all points in U or V direction adjacent to the one selected if I don’t know the complete number of points on that surface?

Thanks in advance.

Never mind I got it rs.SurfacePointCount(objID)