Allow generators to take packet counts.

Note: execution will stop once the first generator reaches the counter.
printf language