src/Leevel/Database/Select.php
public function pageCount(string $cols = '*'): int
    {
        $this->backupPageArgs();

        $count = $this->findCount($cols);

        $this->restorePageArgs();

        return $count;
    }
public function pageCount(string $cols = '*'): int
    {
        $this->backupPageArgs();

        $count = $this->findCount($cols);

        $this->restorePageArgs();

        return $count;
    }
取得分页查询记录数量.

@param string $cols

@return int