I want to get all folders and the number of files in them, so that these files can be displayed in a tree view for users. There are more files and I started getting an error