Returns the value of the reference counter, that is, the number of references to an instance of this class.
This method has the default implementation that returns 1. You shloud redefine it in the derived class.
Overview of Smart Pointer Classes