code: int size() {
          int res = m_subscriptions.size();
          for (TreeNode child : m_children) {
              res += child.size();
          }
          return res;
      }
docs: Return the number of registered subscriptions