I wanted a nice, simple, small FPS counter that displayed an Average FPS over a set number of frames, eg: 22fps average over 10 frames.
I managed to find a basic class that I modified to include an average FPS parameter and a threshold parameter that turns the FPS Background to RED if the FPS drops below the threshhold.
Source: [fps_example]