Function countObj

Counts the number of references of a single object.

size_t countObj(T) (
  T obj
)
if (isAtomicRefCounted!T);