Retrieves the current size of the set.
This method returns the number of elements in the set in a thread-safe approach.
The size of the set.