---
title: count
framework: xpc
role: symbol
role_heading: Instance Property
path: xpc/xpcdictionary/count
---

# count

The number of key-value pairs in the dictionary.

## Declaration

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

## See Also

### Inspecting a dictionary

- [isEmpty](xpc/xpcdictionary/isempty.md)
