code: public long size()
      {
      	if(size==null)
      	{
  	    	ODatabaseDocument db = OrientDbWebSession.get().getDatabase();
  	    	OSQLSynchQuery<ODocument> query = new OSQLSynchQuery<ODocument>(queryManager.getCountSql());
  	    	List<ODocument> ret = db.query(enhanceContextByVariables(query), prepareParams());
  	    	if(ret!=null && ret.size()>0)
  	    	{
  	    		Number sizeNumber = ret.get(0).field("count");
  	    		size = sizeNumber!=null?sizeNumber.longValue():0;
  	    	}
  	    	else
  	    	{
  	    		size = 0L;
  	    	}
      	}
      	return size;
      }
docs: Get the size of the data
  @return results size