public int getNbWayPoints() {
        return spline.getControlPoints().size();
    }
return the number of waypoints of this path
@return the count (&ge;0)
jme3-core/src/main/java/com/jme3/cinematic/MotionPath.java