trafgen: replace counter test with condition

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>