Extract number of packets and faulty packets