queue count working