public int treeSize() {
        if (isEmpty()) return 0;
        return countItemsRecursively(getItemIterator().next());
    }
Returns the total number of items in this query tree.
container-search/src/main/java/com/yahoo/search/query/QueryTree.java