# length (List)

**length (List) → number**

This function is used for getting the item count or length of a list.

**Example:**

```xml
<O N="lengthObject1" T="Project" Category="Functions" TransAlignRule="1">
    <!-- created by ParamML Examples on 8/22/2023 -->
    <P N="List1" V="[0,1,2,3,4,5,6,7,8,9]" />
    <P N="Length" V="length(List1)" />
</O>
```

![](https://openbrim.atlassian.net/wiki/download/attachments/2167865419/image-20230822-145336.png?api=v2) To view this example in the library, see (<https://openbrim.org/app/?incubator=1&author=ParamML_Examples_OpenBrIM+Platform&obj=objid51iqd3mm8yf5bxo4skzrgl> )
