Text.length as Number
This is inherited from the CharacterData object.
cts.doc("example.xml").root.firstChild.length