tracing: Fix counter for traceon/off event triggers