悟空有多少個孩子

XML

<Goku>
    <child name="Gohan"/>
    <child name="Goten"/>
</Goku>

XPATH

count(/Goku/child)

OUTPUT

2.0