In reply to babanrosesalluri5:
Please use code tags to make your code easier to read.
You seem to be confusing the concepts of a sequence and a sequencer in the code for counter_sequencer. I think you mean to have this as a sequence. or specifically as what is known as a virtual sequence that runs on the “null” sequencer.