---
title: getCount
framework: Kernel
role: symbol
role_heading: Instance Method
platforms: [driverkit 19.0+, macOS 10.15+]
path: kernel/osdictionary/3180900-getcount
---

# getCount

Returns count of members in dictionary.

## Declaration

```occ
virtual uint32_t getCount(void);
```

```occ
virtual unsigned int getCount(void);
```

## Return Value

Return Value Count of members in dictionary.

## See Also

### Inspecting a Dictionary

- [ensureCapacity](kernel/osdictionary/3180896-ensurecapacity.md)
- [getCapacity](kernel/osdictionary/3180899-getcapacity.md)
