Whenever you open a folder in Windows 11, it will automatically open in the File Explorer window. All you have to do it enable the Details Pane. Whenever you open the folder in discussion or any folder in general, the number of files in the folder will show in the Details pane.