Fix (really unlikely) 'count' bug

The reset should take place _after_ the remote call to keep the counters consistent.

I'm porting your rpc-stream idea over to python and stumbled over this 'bug' (but I never had to reset the counter....so no beer for me ;) ).