---
title: count
framework: modelio
role: symbol
role_heading: Instance Property
path: modelio/mdlvoxelarray/count
---

# count

The number of voxels in the array.

## Declaration

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

## Discussion

Discussion This property measures the number of grid positions in the array for which voxel data exists, not the total number of grid positions within the voxel array’s extent.

## See Also

### Examining Voxels

- [voxelIndexExtent](modelio/mdlvoxelarray/voxelindexextent.md)
- [voxelExists(atIndex:allowAnyX:allowAnyY:allowAnyZ:allowAnyShell:)](modelio/mdlvoxelarray/voxelexists(atindex:allowanyx:allowanyy:allowanyz:allowanyshell:).md)
- [voxels(within:)](modelio/mdlvoxelarray/voxels(within:).md)
- [voxelIndices()](modelio/mdlvoxelarray/voxelindices().md)
