public function countResults(string $table): int
    {
        $queryBuilder = $this->conn->createQueryBuilder();
        $rows = $queryBuilder->select('COUNT(1)')->from($table)->execute();

        return (int) $rows->fetch(\Doctrine\DBAL\FetchMode::NUMERIC)[0];
    }
public function countResults(string $table): int
    {
        $queryBuilder = $this->conn->createQueryBuilder();
        $rows = $queryBuilder->select('COUNT(1)')->from($table)->execute();

        return (int) $rows->fetch(\Doctrine\DBAL\FetchMode::NUMERIC)[0];
    }
public function countResults ( string $ table ) : int { $ queryBuilder = $ this -> conn -> createQueryBuilder ( ) ; $ rows = $ queryBuilder -> select ( 'COUNT(1)' ) -> from ( $ table ) -> execute ( ) ; return ( int ) $ rows -> fetch ( \ Doctrine \ DBAL \ FetchMode :: NUMERIC ) [ 0 ] ; }
Do a simple count for a table

@param  string $table

@return int
Do a simple count for a table