second simulation
bash script to compute number of packets