Add getObject and getObjectCount methods