@Override
    protected void onDisable() {
        getApplication().setAppProfiler(null);
        graph.removeFromParent();
        background.removeFromParent();
    }
Sets the number frames displayed and tracked.
@param count the number of frames
jme3-core/src/main/java/com/jme3/app/BasicProfilerState.java