A working (gcc) nifty-counter example. Because I forget things.