---
title: itemCount
framework: carplay
role: symbol
role_heading: Instance Property
path: carplay/cplisttemplate/itemcount
---

# itemCount

The total number of items, across all sections, in the list.

## Declaration

```swift
var itemCount: Int { get }
```

## Discussion

Discussion This value never exceeds maximumItemCount. If you initialize a list where the total number of items, across all sections, is greater than maximumItemCount, CarPlay only displays items up to this limit and discards the rest.

## See Also

### Getting Supplementary Information

- [maximumItemCount](carplay/cplisttemplate/maximumitemcount.md)
- [indexPath(for:)](carplay/cplisttemplate/indexpath(for:).md)
- [title](carplay/cplisttemplate/title.md)
