src/Leevel/Database/Select.php
public function findCount(string $field = '*', string $alias = 'row_count', bool $flag = false)
    {
        $result = $this->findAggregateResult('count', $field, $alias, $flag);

        if (!is_array($result)) {
            $result = (int) $result;
        }

        return $result;
    }
public function findCount(string $field = '*', string $alias = 'row_count', bool $flag = false)
    {
        $result = $this->findAggregateResult('count', $field, $alias, $flag);

        if (!is_array($result)) {
            $result = (int) $result;
        }

        return $result;
    }
总记录数.

@param string $field
@param string $alias
@param bool   $flag  指示是否不做任何操作只返回 SQL

@return array|int