public int getNumInstances() {
        int count = 0;
        for (int i = 0; i < geometries.length; i++) {
            if (geometries[i] != null) {
                count++;
            }
        }
        return count;
    }
@return The number of instances are in this {@link InstancedGeometry}
jme3-core/src/main/java/com/jme3/scene/instancing/InstancedGeometry.java