Controlling the number of vortices and torque in Taylor–Couette flow