Emacs tip of the day: when creating a macro, press F3 to insert 0. The next time your macro runs, it will insert 1, and so on.