removed counted_ptr

I removed counted_ptr on several places, even on the miniTLU parts which is not yet tested.