Return the number of node

def node_number(self, *, count_pnode=True) -> int:
        """Return the number of node"""
        return (sum(1 for n in self.nodes())
                + (sum(1 for n in self.powernodes()) if count_pnode else 0))