Restructed allocator instrumenting to not depend on holding a reference to the allocator but instead having the allocator hold a pointer to the counts