In this rule

Historical Rules · 30 July 2024

Rule 700.8b

Official source text from the 30 July 2024 Rules release

Permalink

If a creature has multiple creature types for which it could be the party member, it is counted as the party member for only one of those types. If there are different ways to count such a creature that results in different numbers of creatures in a player’s party, it is counted in such a way to get the highest result.

Find this number in the current Rules