public int getQuantity() {
        return children.size();
    }
<code>getQuantity</code> returns the number of children this node
maintains.

@return the number of children this node maintains.
jme3-core/src/main/java/com/jme3/scene/Node.java