---
title: "CFDictionaryGetCountOfValue(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfdictionarygetcountofvalue(_:_:)"
---

# CFDictionaryGetCountOfValue(_:_:)

Counts the number of times a given value occurs in the dictionary.

## Declaration

```swift
func CFDictionaryGetCountOfValue(_ theDict: CFDictionary!, _ value: UnsafeRawPointer!) -> CFIndex
```

## Parameters

- `theDict`: The dictionary to examine.
- `value`: The value for which to find matches in theDict. The value equal callback provided when the dictionary was created is used to compare. If the equal callback was NULL, pointer equality (in C, ==) is used. If value, or any other value in the dictionary, is not understood by the equal callback, the behavior is undefined.

## Return Value

Return Value The number of times the value occurs in theDict.

## See Also

### Examining a dictionary

- [CFDictionaryContainsKey(_:_:)](corefoundation/cfdictionarycontainskey(_:_:).md)
- [CFDictionaryContainsValue(_:_:)](corefoundation/cfdictionarycontainsvalue(_:_:).md)
- [CFDictionaryGetCount(_:)](corefoundation/cfdictionarygetcount(_:).md)
- [CFDictionaryGetCountOfKey(_:_:)](corefoundation/cfdictionarygetcountofkey(_:_:).md)
- [CFDictionaryGetKeysAndValues(_:_:_:)](corefoundation/cfdictionarygetkeysandvalues(_:_:_:).md)
- [CFDictionaryGetValue(_:_:)](corefoundation/cfdictionarygetvalue(_:_:).md)
- [CFDictionaryGetValueIfPresent(_:_:_:)](corefoundation/cfdictionarygetvalueifpresent(_:_:_:).md)
