netstat -nt |awk '{++S[$NF]} END {for (a in S ) print a,S[a]}'