measure throughput by counter