websocket counter