public void setFrameCount(int count) {
        if (profiler.getFrameCount() == count) {
            return;
        }
        profiler.setFrameCount(count);
        refreshBackground();
    }
Sets the number frames displayed and tracked.
@param count the number of frames
jme3-core/src/main/java/com/jme3/app/BasicProfilerState.java