in reply to Re^2: Count Using Split
in thread Count Using Split

Show us the line of the input xml file that is giving you this result.

As an alternate approach, have you considered using one of the CPAN modules, such as XML::Twig? XML is notoriously difficult to parse.