Oh, sorry, I did misunderstand
The words in between the / / are nodes in the XML.
<lootcontainer id="25" count="1,2" size="6,2" sound_open="UseActions/open_garbage" sound_close="UseActions/close_garbage" loot_quality_template="qualBaseTemplate">
<item name="foodEgg" prob="0.25"/>
<item name="resourceFeather" count="1,5" prob="0.75"/>
</lootcontainer>
To reference the count, you want to do this:
xpath="/lootcontainers/lootcontainer[@id=25']/item[@name=resourceFeather]/@count"
The item itself is a node, that has a name, much like the lootcontainer has an id.