Gets the number of singleton beans registered in this registry.
The number of singleton objects.
Only checks already instantiated singletons; does not count singleton object definitions which have not been instantiated yet.
The main purpose of this method is to check manually registered singletons RegisterSingleton. Can also be used to count the number of singletons defined by an object definition that have already been created.