Depends on the CPU. An UNO / Nano / mini can manage 6 hwPWM pins, for which it uses 3 timers. A Mega can manage more. ESP boards use swPWM but can have it on any pin. The use of the timers may be a limitation if there are other parts of a program that may use them as well.