How to disable sequencer using uvm_config_db?

In reply to rakesh2learn:

As cgales said, using count to switch-off is a deprecated construct in UVM.
It might not be supported in future versions of UVM.
In your case I’d set the default sequence to the run_phase of your sequencer and not on the to the main_phase.