for (int j = 0; j < cols.length; j++) {  collitems = cols[j].countItems();  commitems += collitems;  }
total += cols[i].countItems();
    public int countItems()        throws SQLException    {        /** item count in a collection */        int collitems = 0;        /** item count in a community */        int commitems = 0;        Collection[] cols = getCollections();        if ( cols.length > 0 )        {            for (int j = 0; j < cols.length; j++)            {                // Get total items of a collection                collitems = cols[j].countItems();                commitems += collitems;            }        }        return commitems;    }