using ruby how to get number of files in a given Directory,the file count should include count from recursive directories.
Eg: folder1(2 files) -----> folder2(4 files)
All you need is this, run in the current directory.
Dir["**/*"].length
It counts directories as files.