To use this library in your code:
import pulse-counter
import pulse-counter main: unit := pulse-counter.Unit 18 while true: print unit.value sleep --ms=500