This is basically dead code. The counter matters, but should only be changed by the server request. Delete it.