let's say there is a directory with the name 'IN'. It contain a no. of files. i wanted to know how i can find out no. of files in a folder and the earliest and latest dates on which fille has arrived in that folder.
Simply do like this if you include directories.
To exclude directories,
A concern is, what is the "time" you'r looking for? "mtime" is used in preceding examples. Google "atime ctime mtime" for their differences. In ext3/4 filesystems there probably no such a thing "birth time" of a file.