I was misled by the indentation in your source document into thinking it had a different hierarchic structure.
It's not very good XML design to use a sequence such as
<name>
<amount>
<name>
<amout>
<name>
<amount>
It's better to wrap each (name, amount) pair in an enclosing element.
But if you can't change the XML, the answer is to change
<xsl:for-each select="Issue/Status[Name=$status]">
<Number><xsl:value-of select="Amount"/></Number>
</xsl:for-each>
to
<xsl:for-each select="Issue/Status/Name[.=$status]">
<Number><xsl:value-of select="following-sibling::Amount[1]"/></Number>
</xsl:for-each>
You'll also have to fix the fact that "resolved" is spelt two different ways in your source.
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference