Can anyone help me with this:
To get the count of files that are existing in a directory created on a perticular date like in the example (01/08) .(having same pattern for the filename)
Of course it is retreiving all the files. In your command you are just running 'ls -l|grep -c ^-'. This lists all files in the directory, then just filters out plain files (removes dirs/pipes/devices).
You'll need to filter for files created on the 8th first to do what you want. Use find or grep to get the files that you want first and then run the count.
If you know the date, and are running manually, you can just grep for the date:
ls -l | grep -c "Jan 8"
-Edit
Better:
find . -type f | xargs ls -l | grep -c "Jan 8"
To prevent descent into subdirectories, just search the site for non-recursive find or something like that
-/Edit