Implement counter check in client.