Added a variable $affected_rows which stores the total number of affected rows after a get() call.