Programming counter-spindles in G-code