Fix (really unlikely) 'count' bug

The reset should take place _after_ the remote call.