Amount of XML tags?

Hello,

I’ve got an XML file that contains maps for my game. It’s set up like this:

<maps>
  <map>
    <row></row>
    <row></row>
  </map>
  <map>
    <row></row>
    <row></row>
  </map>
</maps>

With the row tags containing data for the rows on the map. I want actionscript to be able to tell me how many <map> nodes there are. I’ve tried a bunch of different ways but I couldn’t get it to work.