---
title: count
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/lowlevelmeshinstancearray/count
---

# count

The number of instance slots in this array.

## Declaration

```swift
final var count: Int { get }
```

## Discussion

Discussion Represents the total capacity allocated at creation time; some slots may be unoccupied. Use setMeshInstance(_:index:) to populate slots and the subscript to check occupancy.

## See Also

### Setting mesh instances

- [setMeshInstance(_:index:)](realitykit/lowlevelmeshinstancearray/setmeshinstance(_:index:).md)
