A counter keeps track of number of websocket messages and chart redraw each n msg.