Use an atomic counter for client counting accuracy.