client counter implemented