in reply to trying to count files in a directory and subs
As many times in the past i suggest the basic and elegant solution by tachyon. It is simple and you can extend it at will. You'll find the original tachyon's post with plain explanation here
L*
|
|---|