Optimized user counting