Add an option to limit the number of packet sent.