Get the number of points of the spline. This way, any spline with any number of points can be use and the expression will adapt itself.