Function std::sys::refcount

pub fn refcount<T>(t: @T) -> uint

Returns the refcount of a shared box (as just before calling this)