Esp32 Pulse Counter