ls | wc -l
will count all files, inc those files that happen to be a directory themselves, in the current directory
ls -l | grep -v '^d' | wc -l
will exclude the directories Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.