If you and your teammate used one Pokemon each and it's the same for your opponents, you, your teammate and the ref would get two and the losers would get 1 each

If you and your teammate used two Pokemon each and yada yada, it would be 4, 4, 4 and 2 each for the losers


If you link to the battle, it would be less confusing