---
title: "CFArrayGetCount(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfarraygetcount(_:)"
---

# CFArrayGetCount(_:)

Returns the number of values currently in an array.

## Declaration

```swift
func CFArrayGetCount(_ theArray: CFArray!) -> CFIndex
```

## Parameters

- `theArray`: The array to examine.

## Return Value

Return Value The number of values in theArray.

## See Also

### Examining an Array

- [CFArrayBSearchValues(_:_:_:_:_:)](corefoundation/cfarraybsearchvalues(_:_:_:_:_:).md)
- [CFArrayContainsValue(_:_:_:)](corefoundation/cfarraycontainsvalue(_:_:_:).md)
- [CFArrayGetCountOfValue(_:_:_:)](corefoundation/cfarraygetcountofvalue(_:_:_:).md)
- [CFArrayGetFirstIndexOfValue(_:_:_:)](corefoundation/cfarraygetfirstindexofvalue(_:_:_:).md)
- [CFArrayGetLastIndexOfValue(_:_:_:)](corefoundation/cfarraygetlastindexofvalue(_:_:_:).md)
- [CFArrayGetValues(_:_:_:)](corefoundation/cfarraygetvalues(_:_:_:).md)
- [CFArrayGetValueAtIndex(_:_:)](corefoundation/cfarraygetvalueatindex(_:_:).md)
