Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.
I have found some decompiled memory maps for Emerald online that list these as the party count locations in WRAM:
#define PLAYER_PARTY_COUNT 0x20244E9 // 1 byte
#define OPPONENT_PARTY_COUNT 0x20244EA // 2 bytes
From my testing, the location for the player's party count is...