def child_count(self, only_direct=True):
if not only_direct:<EOL><INDENT>count = <NUM_LIT:0><EOL>for _node in self.dfs_iter():<EOL><INDENT>count += <NUM_LIT:1><EOL><DEDENT>return count<EOL><DEDENT>return len(self._children)<EOL>
Returns how many children this node has, either only the direct
        children of this node or inclusive of all children nodes of this node.