@Override
    protected void cleanup(Application app) {
        InputManager inputManager = app.getInputManager();
        if (inputManager.hasMapping(INPUT_MAPPING_PROFILER_TOGGLE)) {
            inputManager.deleteMapping(INPUT_MAPPING_PROFILER_TOGGLE);
        }
        inputManager.removeListener(keyListener);
    }
Sets the number frames displayed and tracked.
@param count the number of frames
jme3-core/src/main/java/com/jme3/app/BasicProfilerState.java