---
title: count
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtl4counterheapdescriptor/count
---

# count

Assigns the number of entries in the heap.

## Declaration

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

## Discussion

Discussion Each entry represents one item in the heap. The size of the individual entries depends on the heap type.
