(self, start_node=None)
return count
Return the number of the nodes on the tree
      starting at the *start_node*, if *start_node* is None,
      then the method will count all the tree nodes.

      :rtype: the number of nodes
Return the number of the nodes on the tree
      starting at the *start_node*, if *start_node* is None,
      then the method will count all the tree nodes.
Return the number of the nodes on the tree starting at the * start_node * if * start_node * is None then the method will count all the tree nodes .
def getNodesCount(self, start_node=None):
      """ Return the number of the nodes on the tree
      starting at the *start_node*, if *start_node* is None,
      then the method will count all the tree nodes.

      :rtype: the number of nodes
      """
      count = 1
      if start_node is None:
         start_node = self.getRoot()
      for i in start_node.getChilds():
         count += self.getNodesCount(i)
      return count
def getNodesCount ( self , start_node = None ) : count = 1 if start_node is None : start_node = self . getRoot ( ) for i in start_node . getChilds ( ) : count += self . getNodesCount ( i ) return count