return number of affected rows from the backend