How to check number of files is currenty open by Solaris 10 and Linux

Hi,

Anyone know the command as how many files are open in Solaris 10 and Linux - i.e. currently open - real time

Thanks

i am using lsof... and opensource tool,

lsof - list open files
SYNOPSIS
lsof [ -?abChlnNOPRstUvVX ] [ -A A ] [ -c c ] [ +c c ] [
+|-d d ] [ +|-D D ] [ +|-f [cfgGn] ] [ -F [f] ] [ -g [s]] [
-i [i]] [ -k k ] [ +|-L [l] ] [ +|-m m ] [ +|-M ] [ -o [o]
] [ -p s ] [ +|-r [t] ] [ -S [t] ] [ -T [t] ] [ -u s ] [
+|-w ] [ -x [fl] ] [ -z [z] ] [ -- ] [names]

DESCRIPTION
Lsof revision 4.76 lists information about files opened by
processes for the following UNIX dialects:

      AIX 5.[123]
      Apple Darwin 7.x and 8.x for Power Macintosh systems
      BSDI BSD/OS 4.3.1 for x86-based systems
      FreeBSD 4.x, 4.1x, 5.x and [67].x for x86-based systems
      FreeBSD 5.x and [67].x for Alpha, AMD64 and Sparc64-based
          systems
      HP-UX 11.00, 11.11 and 11.23
      Linux 2.1.72 and above for x86-based systems
      NetBSD 1.[456], 2.x and 3.x for Alpha, x86, and SPARC-based
          systems
      NEXTSTEP 3.[13] for NEXTSTEP architectures
      OpenBSD 2.[89] and 3.[01234567] for x86-based systems
      OPENSTEP 4.x
      SCO OpenServer Release 5.0.6 for x86-based systems
      SCO|Caldera UnixWare 7.1.4 for x86-based systems
      Solaris 2.6, 8, 9 and 10
      Tru64 UNIX 5.1

 \(See the DISTRIBUTION section of this manual page for infor-
 mation on how to obtain the latest lsof revision.\)


 An open file may be a regular file,  a  directory,  a  block
 special  file,  a  character special file, an executing text
 reference, a library, a stream or a network  file  \(Internet
 socket, NFS file or UNIX domain socket.\)  A specific file or
 all the files in a file system may be selected by path.

regards pressy