SELECT count(catalogItem.id) as DATAOBJECT_NUM                 FROM catalogItem INNER JOIN catalogItemCatalogCategory ON catalogItem.id=catalogItemId   WHERE ( catalogItem.permissions LIKE 'r__' )  AND ( catalogCategoryId=4 ) AND (  catalogItem.active = 1 )