code: public int getBotsCount(int teamId, boolean invert) {
  	int total = 0;
  	for (Robot bot : robotsPosition.keySet()) {
  	    if (bot.getData().getTeamId() == teamId) {
  		if (!invert) {
  		    total++;
  		}
  	    } else {
  		if (invert) {
  		    total++;
  		}
  	    }
  	}
  	return total;
  
      }
docs: Get the total number of living robots from or not from a team
  
  @param teamId the team to search for
  @param invert if true, find robots NOT in teamId
  @return number of robots in the specified group