$refcnt prints an object's reference count.
Each object has a reference count indicating the extent of the object's use. When an object is created, its reference count is 1. If another object references the object, the reference count is incremented. If a reference to the object is removed, the reference count is decremented.
OM(SingleWindowApp) -> int x;
OM(SingleWindowApp) -> $refcnt x
refcnt is: 1
OM(SingleWindowApp) -> int y => x;
OM(SingleWindowApp) -> $refcnt x
refcnt is: 2
OM(SingleWindowApp) -> y =>;
OM(SingleWindowApp) -> $refcnt x
refcnt is: 1