@Override
    public int getAxisCount() {
        return axes.size();
    }
Returns the number of axes on this joystick.

@return the number of axes on this joystick.
jme3-core/src/main/java/com/jme3/input/AbstractJoystick.java