For the Simplified Chinese translation, click 中文译文.
count() function counts all objects retrieved by the enclosed query and returns the value as an integer.
This query returns a count of all the placed orders:
This query returns a count of all the orders placed by a customer named “Jansen”:
count(//Sales.Order[Sales.Customer_Order/Sales.Customer/Name = 'Jansen'])