[CentOS] count of active tcp sockets?

Wed Apr 16 21:18:45 UTC 2008
J Potter <jpotter-centos at codepuppy.com>

> netstat -an|grep TIME_WAIT|wc  ?

I need to avoid anything that lists out all the connections -- the  
above would take too long if there are tens of thousands of connections.

I'm hoping there's a proc entry that has a summary count of the  
current number of connections?