public function aggregate( MW_Common_Criteria_Interface $search, $key )
	{
		$required = array( trim( $this->_prefix, '.' ) );
		return $this->_aggregate( $search, $key, $this->_configPath . 'aggregate', $required );
	}
public function aggregate( MW_Common_Criteria_Interface $search, $key )
	{
		$required = array( trim( $this->_prefix, '.' ) );
		return $this->_aggregate( $search, $key, $this->_configPath . 'aggregate', $required );
	}
public function aggregate ( MW_Common_Criteria_Interface $ search , $ key ) { $ required = array ( trim ( $ this -> _prefix , '.' ) ) ; return $ this -> _aggregate ( $ search , $ key , $ this -> _configPath . 'aggregate' , $ required ) ; }
Counts the number items that are available for the values of the given key.

@param MW_Common_Criteria_Interface $search Search criteria
@param string $key Search key to aggregate items for
@return array List of the search keys as key and the number of counted items as value
Counts the number items that are available for the values of the given key .