Autocount of packets