How to use the count() function is XSL - trying to count the amount of "A"s there are in a report <xsl:value-of select="count(/class/student[grade='A'])"/>