Returns the number of elements in the list. You can also use this function to return the length of a string.
first argument– list or string
The following expression returns 2.
<length>
<list>
<s>apples</s>
<s>oranges</s>
</list>
</length>
<length> <s>Hello world!</s> </length>
This expression returns a value of 11.