src/Db/Collection/CollectionAbstract.php
public function countAll($pConditions = NULL)
    {
        $count = new Count($this->_dbContainer);

        if ($pConditions instanceof Conditions) {
            $count->loadConditions($pConditions);
        }

        return $count->commit();
    }
public function countAll($pConditions = NULL)
    {
        $count = new Count($this->_dbContainer);

        if ($pConditions instanceof Conditions) {
            $count->loadConditions($pConditions);
        }

        return $count->commit();
    }
public function countAll ( $ pConditions = NULL ) { $ count = new Count ( $ this -> _dbContainer ) ; if ( $ pConditions instanceof Conditions ) { $ count -> loadConditions ( $ pConditions ) ; } return $ count -> commit ( ) ; }
Count a collection without loading items.

@param Conditions $pConditions Filter the results
@return int
Count a collection without loading items .