This bug is with API, not the game itself. But it might be also be part of the game (as there are often lobby bugs).
Sometimes when requesting lobbies via API it shows 9 players.
Request I use:
https://aoe-api.worldsedgelink.com/community/advertisement/findAdvertisements?title=age2&start=0.
Some lobbies may have 9 players.