def NumTerminatedGames(game_results):
  """Returns the number of terminated games."""
  count = 0
  for game_result in game_results:
    if len(game_result.winners) == 0:
      count += 1
  return count