Runtime.ObjectRefs
From Xojo Documentation
Read-Only Property (As Integer )
ObjectRefs returns the number of references to the passed object.
Notes
It Takes ObjectNumber as its parameter, where ObjectNumber is greater than or equal to zero and less than ObjectCount.