Return number of updated rows

Closes #134