NB! It seems this console command is not compatible with CS2.
Command Profile

SV_DZ_TEAM_COUNT

CS:GO

This command sets the maximum amount of players that can be in each team in Danger Zone.

Syntax
sv_dz_team_count [Amount]

Description

This command sets the maximum amount of players that can be in each team in Danger Zone.

Syntax And Arguments

sv_dz_team_count [Amount]
Amount The maximum amount of players that can be in each team (e.g. 2).