Valve just announced that Steam is getting a frames per second (FPS) counter. Fow now this feature is only available in the beta version of Steam. Go to Settings, then Account, and choosing the Steam Beta Update from there.
You can then enable the FPS counter in Steam's Settings. Go to "In-Game" and check the box saying "Show in-game frames/sec (FPS).