Implement a functionality to return the number of affected rows (updated/deleted/inserted)