I have searched for a solution to listing the number of files in each sub-directory recursively. There are many solutions that will give the number of files in each sub-directory of a given starting directory, but these seem to only list the sub-directory counts of the starting directory, and not recursively going down the tree structure for all sub-directories.
sublevelA1 10 files
sublevelA2 200 files sublevelA3 600 files
sublevelB1 50 files
sublevelB2 123 files sublevelB3 357 files
The solutions that I have tried will only give me 2 lines saying sublevelA1 810 files and sublevelB1 530 files.
I would like a solution that gives me the 6 lines from above. Indentation is not required.