added support for update return count