plugin:csscounters

Demo

~~CT:generic~~

Show the counter here (~~CT>generic~~) and increment it here ~~CT+generic~~ (~~CT>generic~~).

At this point ~~CT:generic~~ the counter has been reset again (new value: ~~CT>generic~~). We can then ~~CT+generic~~ increment it again (new value: ~~CT>generic~~).