<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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))