fn count_packets_received(packets: &PacketBatch, counts: &mut [u64; 7])