---
title: "CFSetGetCount(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfsetgetcount(_:)"
---

# CFSetGetCount(_:)

Returns the number of values currently in a set.

## Declaration

```swift
func CFSetGetCount(_ theSet: CFSet!) -> CFIndex
```

## Parameters

- `theSet`: The set to examine.

## Return Value

Return Value The number of values in theSet.

## See Also

### Examining a Set

- [CFSetContainsValue(_:_:)](corefoundation/cfsetcontainsvalue(_:_:).md)
- [CFSetGetCountOfValue(_:_:)](corefoundation/cfsetgetcountofvalue(_:_:).md)
- [CFSetGetValue(_:_:)](corefoundation/cfsetgetvalue(_:_:).md)
- [CFSetGetValueIfPresent(_:_:_:)](corefoundation/cfsetgetvalueifpresent(_:_:_:).md)
- [CFSetGetValues(_:_:)](corefoundation/cfsetgetvalues(_:_:).md)
