Report question

Question: Updating counter in XQuery