Function RefCountedObject.refCount

returns current value of reference counter

int refCount() @property const;