That’s not true. If you design a series of separate fights, then yes, that should be considered a single encounter so that you can gauge the difficulty properly. But if the players decide to push on without resting, or something prevents it, those are separate encounters. There’s a sidebar...