Data logger for multiple energy meters

The ESP32 has a built in module called the PCNT, Pulse Counter (PCNT) - ESP32 - — ESP-IDF Programming Guide latest documentation (espressif.com), It will take a few ESP32's to get the job done.