I think you're probably looking for ListDatasets (or possibly, ListFeatureClasses, and if the dataset type is feature class, table, layer, or raster, then getCount.
Can you rephrase "object" (feature?) and "object class" (feature class?) into ArcGIS terms (or perhaps this is an SDE thing)?