AS400

Hi all,

I'm new to this forum.
I have a problem at work. I am a RPG programmer (AS400) but i have a new project to try something in QSHELL and i'm totally new to this.

I have to make a 'list' wich contains all our AS400 directories (+ on this level the size of the directory and how many files it includes) + subdirectories + files.
This is what i am using now as command.:

 ls -s -R -l   > /qsys.lib/nboghman.lib/output.file/output.mbr

This shows me everything i want even the subdirs and files in it but it wont make the file count and tell me for example 25 files in ... directory.

Does anyone have an idea?
Thanks!