i am using this cpan module and this is really useful
But i have a query

my xml file looks like this
--------------------------------------------
<mac>
<calls>
<scallPs>83234</scallPs>
<sreadPs>7462</sreadPs>
<swritPs>7394</swritPs>

</calls>

<cpu>
<usr>10</usr>
<sys>3</sys>
<wio>0</wio>
<idle>87</idle>
</cpu>
</mac>
------------------------------------------
i can print individual value like $data->{cpu}->{idle}

But how can i find no. of elements in <cpu> or <calls> .. which is 3 and 4 respectively.
and how can find find the no. of element of <map> which is 2 namely <CPU> and <calls>

Thanks in advance