public function count($key = null)
	{
		if (is_null($key)) {
			return count($this->params);
		}
		return count($this->getArray($key));
	}
public function count($key = null)
	{
		if (is_null($key)) {
			return count($this->params);
		}
		return count($this->getArray($key));
	}
public function count ( $ key = null ) { if ( is_null ( $ key ) ) { return count ( $ this -> params ) ; } return count ( $ this -> getArray ( $ key ) ) ; }
Counts the parameters.
Parameter keys that appear multiple times count as one array parameter.

If the $key parameter is used, the number of values of this parameter are counted.

@param string $key
@return int
Counts the parameters . Parameter keys that appear multiple times count as one array parameter .