Get the process ID using ps faux:
ps faux
Now you may count the open socket connections of the process (including child processes):
netstat -nap | grep 2772| wc -l
You may also want to count all socket connections with state: CLOSE_WAIT
netstat -nap | grep CLOSE_WAIT | wc -l