code: def topics_count(self):
          
          return self.obj.direct_topics_count + sum(n.topics_count for n in self.children)
docs: Returns the number of topics associated with the current node and its descendants.