In this rule

Historical Rules · 22 July 2016

Rule 717.4b

Official source text from the 22 July 2016 Rules release

A player’s main-game counters aren’t considered part of the subgame, although the player will still have them when the main game resumes. Similarly, any counters a player gets during a subgame will cease to exist when the subgame ends.

Find this number in the current Rules