@Override
    public int getVertexCount() {
        int count = 0;
        if (children != null) {
            for (int i = 0; i < children.size(); i++) {
                count += children.get(i).getVertexCount();
            }
        }

        return count;
    }
<code>getVertexCount</code> returns the number of vertices contained
in all sub-branches of this node that contain geometry.

@return the vertex count of this branch.
jme3-core/src/main/java/com/jme3/scene/Node.java