I am having little difficulty in assigning a counter variable and incrementing it and then checking for a certain value in XSLT. Here is my code:
In my case I needed total of boxes in the shipment, this helped