Using use_count() with a Smart Pointer: C++ Example