public int instanceCount(ClassMetadata clazz, Transaction trans) { synchronized (lock()) { return clazz.indexEntryCount(trans); } }