def child_count(self, only_direct=True):
        if not only_direct:
            return iter_utils.count(self.dfs_iter())
        return len(self._children)
Returns how many children this node has.
dataset/ETHPy150Open openstack/taskflow/taskflow/types/tree.py/Node.child_count