simple bash script to check number of sockets