pub fn count_packets_in_batches(batches: &[PacketBatch]) -> usize