This function will return the total count of all current objects.
orxU32 totalObjectsCount = orxStructure_GetCounter(orxSTRUCTURE_ID_OBJECT);
Counts of other structure types can also be called. See: orxSTRUCTURE_ID in the API