Added realtime updating for count