Added user count logic