int () { int result = 0; Enumeration children = children(); while (children.hasMoreElements()) { AbstractTreeNode treeNode = (AbstractTreeNode)children.nextElement(); result += treeNode.getItemsCount(); } return result; }