...I can't say <td rowspan="count()">

The count() function has to be used in conjunction with an xsl:value-of select

Thanks anyway, I was able to figure out a work-around.