code: @Override
  	public int countByG_U_O(long groupId, long userId, int orderStatus) {
  		FinderPath finderPath = FINDER_PATH_COUNT_BY_G_U_O;
  
  		Object[] finderArgs = new Object[] { groupId, userId, orderStatus };
  
  		Long count = (Long)finderCache.getResult(finderPath, finderArgs, this);
  
  		if (count == null) {
  			StringBundler query = new StringBundler(4);
  
  			query.append(_SQL_COUNT_COMMERCEORDER_WHERE);
  
  			query.append(_FINDER_COLUMN_G_U_O_GROUPID_2);
  
  			query.append(_FINDER_COLUMN_G_U_O_USERID_2);
  
  			query.append(_FINDER_COLUMN_G_U_O_ORDERSTATUS_2);
  
  			String sql = query.toString();
  
  			Session session = null;
  
  			try {
  				session = openSession();
  
  				Query q = session.createQuery(sql);
  
  				QueryPos qPos = QueryPos.getInstance(q);
  
  				qPos.add(groupId);
  
  				qPos.add(userId);
  
  				qPos.add(orderStatus);
  
  				count = (Long)q.uniqueResult();
  
  				finderCache.putResult(finderPath, finderArgs, count);
  			}
  			catch (Exception e) {
  				finderCache.removeResult(finderPath, finderArgs);
  
  				throw processException(e);
  			}
  			finally {
  				closeSession(session);
  			}
  		}
  
  		return count.intValue();
  	}
docs: Returns the number of commerce orders where groupId = &#63; and userId = &#63; and orderStatus = &#63;.
  
  @param groupId the group ID
  @param userId the user ID
  @param orderStatus the order status
  @return the number of matching commerce orders