'GPIO_PIN_COUNT' was not declared

Hi, it is me again.

Any idea about the errors as below around rtc_io.h?

Compiling .pio/build/heltec_wireless_stick/src/loramac/region/RegionEU868.c.o
In file included from .pio/libdeps/heltec_wireless_stick/ESP32_LoRaWAN/src/Mcu.h:8,
from .pio/libdeps/heltec_wireless_stick/ESP32_LoRaWAN/src/ESP32_LoRaWAN.h:8,
from src/OTAA_LED.cpp:34:
src/driver/rtc_io.h: In function ‘bool rtc_gpio_is_valid_gpio(gpio_num_t)’:
src/driver/rtc_io.h:31:24: error: ‘GPIO_PIN_COUNT’ was not declared in this scope
return (gpio_num < GPIO_PIN_COUNT && rtc_io_num_map[gpio_num] >= 0);
^~~~~~~~~~~~~~
src/driver/rtc_io.h:31:24: note: suggested alternative: ‘SOC_GPIO_PIN_COUNT’
return (gpio_num < GPIO_PIN_COUNT && rtc_io_num_map[gpio_num] >= 0);
^~~~~~~~~~~~~~
SOC_GPIO_PIN_COUNT
*** [.pio/build/heltec_wireless_stick/src/OTAA_LED.cpp.o] Error 1