original_string: 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];
      }
code: 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];
      }
code_tokens: 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 ] ; }
docstring: Do a simple count for a table
  
  @param  string $table
  
  @return int
docstring_tokens: Do a simple count for a table