(* Simple counter in Emfrp *) node @in tick : bool node counter : int = if tick then last counter @default(0) + 1 else last counter @default(0) node @out result : int = counter