I write a script to find out all the file names and the number of files
in a folder(no other children folder) as following:
puts file if file=~/(\w+)|(\d+)/ # remove file .
but I am not sure how to calculate the number of file in folder.
Any help will be appreciated.