code: public int size(boolean recurse)
      {
          if (!recurse) {
              return this.children != null ? this.children.size() : 0;
          }
  
          int size = 0;
  
          for (LogEvent logEvent : this) {
              ++size;
  
              if (logEvent instanceof LogTreeNode) {
                  size += ((LogTreeNode) logEvent).size(true);
              }
          }
  
          return size;
      }
docs: The number of logs.
  
  @param recurse if true navigate through the whole tree, otherwise only the first level
  @return the number of log events