protected function queryModify(string $sql, array $params = [], array $options = []): int {
        $options += [Db::OPTION_FETCH_MODE => 0];
        $stm = $this->query($sql, $params, $options);
        return $stm->rowCount();
    }
protected function queryModify(string $sql, array $params = [], array $options = []): int {
        $options += [Db::OPTION_FETCH_MODE => 0];
        $stm = $this->query($sql, $params, $options);
        return $stm->rowCount();
    }
protected function queryModify ( string $ sql , array $ params = [ ] , array $ options = [ ] ) : int { $ options += [ Db :: OPTION_FETCH_MODE => 0 ] ; $ stm = $ this -> query ( $ sql , $ params , $ options ) ; return $ stm -> rowCount ( ) ; }
Query the database and return a row count.

@param string $sql The query to execute.
@param array $params Input parameters for the query.
@param array $options Additional options.
@return int
Query the database and return a row count .