implemented packet-count option