added counter to server