Write number of packet to model file