GPIO gasmeter

hello
how can i add i device for counter my gasmeter?
before OH2 i use FHEM and for this it gives a nice tutorial
[german] https://voizchat.de/gaszaehler-verbrauch-erfassen-mit-fhem-und-raspberry-gpio/
does anyone have something similar?