# \(\text{Count}\)¶

You can use the \(\text{Count}\) function to count the number of values of basic types. Values can be provided as parameters or contained within a collection of iterable types.

You can supply a list containing single values, sets, tuples, and matrices. If the supplied sets and tuples contain other sets and tuples, then this function will recursively count basic types within those embedded iterable values.

You can use the `\count`

backslash command to insert this function.

The following variants of this function are available:

\(\text{integer } \text{Count} \left ( \ldots \right )\)

Note that, while this function works for all data types and works in combination, the functions \(\text{NumberRows}\), \(\text{NumberColumns}\), and \(\text{SizeOf}\) method are more efficient for many scenarios.

Below is a basic example using the \(Count\) function.

The example below shows how you can determine the count across sets and tuples.

You can also find the count through more complex constructs.