Report question

Question: In XSLT how do I increment a global variable from a different scope?