checking frame rate

how does one check the fps in their game? and what is a good normal/healthy frame rate? tried searching for a tutorial on how to include one, but had no luck. thanks.
what is a good normal/healthy frame rate?
int FPS=round(real_fps);
sprintf(text, "Frame Rate: %d", FPS);