src/mako/database/connections/Connection.php
public function queryAndCount(string $query, array $params = []): int
	{
		$prepared = $this->prepare($query, $params);

		$this->execute($prepared);

		return $prepared['statement']->rowCount();
	}
public function queryAndCount(string $query, array $params = []): int
	{
		$prepared = $this->prepare($query, $params);

		$this->execute($prepared);

		return $prepared['statement']->rowCount();
	}
public function queryAndCount ( string $ query , array $ params = [ ] ) : int { $ prepared = $ this -> prepare ( $ query , $ params ) ; $ this -> execute ( $ prepared ) ; return $ prepared [ 'statement' ] -> rowCount ( ) ; }
Executes the query and return number of affected rows.

@param  string $query  SQL query
@param  array  $params Query parameters
@return int
Executes the query and return number of affected rows .