def _count_deps(self, depends):
count = <NUM_LIT:0><EOL>for dep in depends:<EOL><INDENT>if isinstance(dep, Future):<EOL><INDENT>if not dep.done():<EOL><INDENT>count += <NUM_LIT:1><EOL><DEDENT><DEDENT><DEDENT>return count<EOL>
Internal.

        Count the number of unresolved futures in the list depends.