Add repeat counting to system trace.