Almost. xmlFileCount is an roXMLList of roXMLElements, so xmlFileCount[0] is an roXMLElement whose GetText() method will return "10".
So, xmlFileCount[0].GetText() is "10" and xmlFileCount[1].GetText() is "40". If you need an integer you can either call:
intFileCount = Int(xmlFileCount[0].GetText()
Or
intFileCount = xmlFileCount[0].GetText().ToInt()
Both should return the same result, though unless you have absolute certainty that the XML file will always be correct, you'll probably want to check to make sure GetText() actually returns a value first, to be safe.