APL (Dyalog Unicode), 15 11 bytesSBCS
-4 thanks to inspiration from Luis Mendo's solution.
Full program, prompting for input via stdin.
1⊢⍞⌽⍨¯2+≢1⍬
Try it online!
1⍬ the list [1,[]]
≢ tally the elements in that; 2
¯2+ add negative two to that; 0
…⌽⍨ cyclically rotate the following by...