Why not just count the nodes using a xpath?
something like
Code:
<xsl:value-of select="count(/root/Products/Product)" />
Tossed it inside
Code:
<xsl:if test="aspdnsf:AppConfigBool('Search_ShowProductsInResults')='true' and count(/root/Products/Product)>0">
like such
Code:
<xsl:if test="aspdnsf:AppConfigBool('Search_ShowProductsInResults')='true' and count(/root/Products/Product)>0">
<br />
<table width="100%" cellpadding="2" cellspacing="0" style="{concat('border-style: solid; border-width: 0px; border-color: #', aspdnsf:AppConfig('HeaderBGColor'))}">
<tr>
<td align="left" valign="top">
<img align="bottom" border="0" src="{concat('skins/Skin_', aspdnsf:SkinID(), '/images/matchingproducts.gif')}"></img>
<br/>
Product Count: <xsl:value-of select="count(/root/Products/Product)" />