public function get_item_quantity($max = 0)
	{
		$max = (int) $max;
		$qty = count($this->get_items());
		if ($max === 0)
		{
			return $qty;
		}

		return ($qty > $max) ? $max : $qty;
	}
public function get_item_quantity($max = 0)
	{
		$max = (int) $max;
		$qty = count($this->get_items());
		if ($max === 0)
		{
			return $qty;
		}

		return ($qty > $max) ? $max : $qty;
	}
public function get_item_quantity ( $ max = 0 ) { $ max = ( int ) $ max ; $ qty = count ( $ this -> get_items ( ) ) ; if ( $ max === 0 ) { return $ qty ; } return ( $ qty > $ max ) ? $ max : $ qty ; }
Get the number of items in the feed

This is well-suited for {@link http://php.net/for for()} loops with
{@see get_item()}

@param int $max Maximum value to return. 0 for no limit
@return int Number of items in the feed
Get the number of items in the feed