code: public int size()
      {
          // d139782 Begins
          try
          { // performance short-cut if client has already retrieve all finder result wrappers.
              return (server != null && !hasAllWrappers ? server.size() : allWrappers.size());
          } catch (Throwable t)
          {
              throw new CollectionCannotBeFurtherAccessedException("Caught exception in size() method call:" +
                                                                   t.getMessage());
          }
          // d139782 Ends
      }
docs: Returns the number of elements in this collection. If the collection
  contains more than <tt>Integer.MAX_VALUE</tt> elements, returns
  <tt>Integer.MAX_VALUE</tt>.
  
  @return the number of elements in this collection.
  @exception CollectionCannotBeFurtherAccessedException is thrown when error
  is caught communication to the server in getting the collection size.