Statistics connected on a status of "the ESTABLISHED
netstat -na | grep the ESTABLISHED | WC the -l
Check connections to port 80
netstat -ant | grep -i "80" | wc -l
To count the number of connections tcp connection each state
netstat -an | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'