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

my xml file looks like this


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