Count the number of points in u direction from a cloudpoint

Hi everyone ! I need help to get the number of points in a cloud point in the U direction.
Thanks ! Have a nice day.

Post your code or something.

Sorry, i have no code, just i want to do it in grasshopper:
i want to make a surfgrid from a point cloud from wich i must resolve the number of points in the U direction