script for packet counts