Manages reference counting for a given object. Extensions can override .release to do custom logic when reference counting hits 0.
Decrements the reference counting of this object. When reference counting hits 0, calls .release.
Returns the current reference count.
Increments the reference count. Calls to this method must be matched with calls to .decRef.