drivers: pwm: Kconfig: select counter driver if pwm is enabled
The pwm driver and the counter driver share a gpt module. The interrupt service function of gpt is defined in the counter module. Therefore, when the pwm is enabled, the counter module needs to be enabled to avoid system crashes caused by unknown interrupts.