The count() function takes a sequence as its argument, and returns the number of items in the sequence. For example, the expression «count((4, 5, 6)) » returns 3 .
| Argument | Data Type | Meaning |
|---|---|---|
| Sequence | item()* | The sequence whose items are to be counted |
| Result | xs:integer | The number of items in the supplied sequence |