code: @Override
  	public long dynamicQueryCount(DynamicQuery dynamicQuery,
  		Projection projection) {
  		return commerceDiscountUserSegmentRelPersistence.countWithDynamicQuery(dynamicQuery,
  			projection);
  	}
docs: Returns the number of rows matching the dynamic query.
  
  @param dynamicQuery the dynamic query
  @param projection the projection to apply to the query
  @return the number of rows matching the dynamic query