To enable the FPS counter while recording with ShadowPlay, open the NVIDIA GeForce Experience application, go to the Settings menu, click the 'Overlays' tab, and enable the 'FPS Counter' option. This will display the frames per second (FPS) counter in the corner of your screen while recording gameplay.