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)
You could also go super bare bones and do a system command:
count = `ls -1 #{dir} | wc -l`.to_i