---
title: getCount
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/osarray/getcount
---

# getCount

Returns count of members in array.

## Declaration

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

## Return Value

Return Value Count of members in array.

## See Also

### Inspecting an Array

- [getCapacity](driverkit/osarray/getcapacity.md)
- [ensureCapacity](driverkit/osarray/ensurecapacity.md)
- [OSArrayGetCount](driverkit/osarraygetcount.md)
