---
title: sectionCount
framework: carplay
role: symbol
role_heading: Instance Property
path: carplay/cplisttemplate/sectioncount
---

# sectionCount

The number of sections in the list.

## Declaration

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

## Discussion

Discussion This value never exceeds maximumSectionCount. If you initialize a list, or call the updateSections(_:) method, with an array larger than maximumSectionCount, CarPlay trims the array to an appropriate size.

## See Also

### Managing Sections

- [maximumSectionCount](carplay/cplisttemplate/maximumsectioncount.md)
- [sections](carplay/cplisttemplate/sections.md)
- [updateSections(_:)](carplay/cplisttemplate/updatesections(_:).md)
- [CPListSection](carplay/cplistsection.md)
