Template:Edit counter A

{{subst:Edit counter A|{{subst:#expr:{{{2}}}+1}}}}

Substituting this template produces one or more new substitution template calls, allowing recursive change of a page, see Help:Recursive conversion of wikitext.