Sorry if this question sounds really stupid, but that will mean that the answer is really simple which will be good for all of us.

My question is concerning XSL
I want to know if there is a way to count how many records have been read, and if the record is the last one using a "for each".
I've tried incrementing a variable and coudn't get it to work (and that would help me with detecting the last record any way) so I'm clueless.

Thanks.