Using event count to stop perf test