I have installed Bemko Power Energy Counter, below you can see:

Counter contain pulse output (1000 pulses for 1 kWh) which I connected to GPIO pin in my RPI.
I'm looking for script (I guess python will be the best) to count pulses and update values of energy meter in my domoticz? Anybody have kind of that script?

Of course I was trying to write some myself, but I'm not a programmer so I was only able to check if interrupt is working

I will be grateful for any help.
Thanks in advance.