code: def count_awaited_processes():
      
      awaited = 0
      total = 0
      for i in all_instances():
          if i.enabled:
              total += 1
              if i.state is not remote_dispatcher.STATE_IDLE:
                  awaited += 1
      return awaited, total
docs: Return a tuple with the number of awaited processes and the total
      number