if (displayGroup() instanceof ERXBatchingDisplayGroup) { return ((ERXBatchingDisplayGroup)displayGroup()).rowCount(); } else { return displayGroup().allObjects().count(); }
return displayGroup().allObjects().count();
    public int objectCount() {        if (displayGroup() instanceof ERXBatchingDisplayGroup) {            return ((ERXBatchingDisplayGroup)displayGroup()).rowCount();        } else {            return displayGroup().allObjects().count();        }    }