code: def _count_deps(self, depends):
          
          count = 0
          for dep in depends:
              if isinstance(dep, Future):
                  if not dep.done():
                      count += 1
  
          return count
docs: Internal.
  
          Count the number of unresolved futures in the list depends.