Assuming everyone can talk to their neighbor (possibly in many empty places), and that fans of Team A are ready to talk with fans of Team B, the following might work:
Each captures its closest neighbor, which no one has yet grabbed to form groups of no more than two people. Now everyone remembers the size of the group in which they are located (maybe 1 or 2). Now the leader of each group is selected so that he can communicate with a member of another group. The leaders of each group try to join their group with each other, and each member of the two (now joined) groups remembers the sum of the members of each group (this can be done by passing a new value to be added to the group). This process continues until until only one group remains. At the end of this process, everyone knows the number of people in the stadium.
Hope this helps.
sl0815
source share