public function count()
    {
        if (empty($this->queryString)) {
            $builder = clone $this->builder;
            $builder->resetQueryPart('orderBy');
            $stmt = $builder->execute();
        } else {
            $stmt = $this->connection->executeQuery($this->queryString, $this->queryParams);
        }

        return (int) $stmt->rowCount();
    }
public function count()
    {
        if (empty($this->queryString)) {
            $builder = clone $this->builder;
            $builder->resetQueryPart('orderBy');
            $stmt = $builder->execute();
        } else {
            $stmt = $this->connection->executeQuery($this->queryString, $this->queryParams);
        }

        return (int) $stmt->rowCount();
    }
public function count ( ) { if ( empty ( $ this -> queryString ) ) { $ builder = clone $ this -> builder ; $ builder -> resetQueryPart ( 'orderBy' ) ; $ stmt = $ builder -> execute ( ) ; } else { $ stmt = $ this -> connection -> executeQuery ( $ this -> queryString , $ this -> queryParams ) ; } return ( int ) $ stmt -> rowCount ( ) ; }
Returns number of entities that will be read

@return int
Returns number of entities that will be read