rts: Add --internal-counters RTS flag and several counters