Little lost accesing XML from flash

I have already digest all the amazing tuts in this website about XML and flash, but I’m still a little confused… My question should sound stupid, but it is too much info in my mosquito brain at the moment.
Lets say my XML looks like this one:


<?xml version="1.0" encoding="ISO-8859-1"?>
<thedata>
<events name="birthday" action="sing" message="sit amet turpis." />
<events name="wedding" action="party" message="sit amet turpis." />
<events name="funeral" action="cry" message="sit amet turpis." />
<customer ref="10" name="John" city="London" quotation="sit amet turpis." />
<customer ref="11" name="Mary" city="Madrid" quotation="Nulla scelerisque nunc eget sem. Quisque a eros vel nisl aliquet tempor." />
<customer ref="12" name="Sam" city="Lisboa" quotation="Nunc sed elit eget lacus venenatis sagittis. Vivamus scelerisque mollis nulla. Nam non purus id dui ullamcorper iaculis." />
</thedata>

I know how to put them in a flash array and count them all, but don’t know how to count only some, like, I want to know how many customers are in the list.
How can I get this number in flash.
:rabbit: