Limiting the number of packets to be sent