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

# count

Queries the number of entries in the heap.

## Declaration

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