Two S0 based counters?

Hello,

can I count pulses from two powermeters with an S0 bus using the approach shown in the esphome cookbook ?

If I simply add a second S0 it appears that a distinction between signals from the two powermeters is not possible. Or am I missing something ? Sorry, but am an electric noob, my world is more in software …

Thanks for help / ideas,
Lars