public function count() {
		$criteria = clone $this->getCriteria();
		
		$result = $criteria->limit(0, 0)
		         ->columns(['count' => 'COUNT(*)'])
		         ->findFirst();
		
		return (int) $result->count;
	}
public function count() {
		$criteria = clone $this->getCriteria();
		
		$result = $criteria->limit(0, 0)
		         ->columns(['count' => 'COUNT(*)'])
		         ->findFirst();
		
		return (int) $result->count;
	}
public function count ( ) { $ criteria = clone $ this -> getCriteria ( ) ; $ result = $ criteria -> limit ( 0 , 0 ) -> columns ( [ 'count' => 'COUNT(*)' ] ) -> findFirst ( ) ; return ( int ) $ result -> count ; }
Count the total items number

@return int
Count the total items number