---
title: "CFBitVectorGetCountOfBit(_:_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfbitvectorgetcountofbit(_:_:_:)"
---

# CFBitVectorGetCountOfBit(_:_:_:)

Counts the number of times a certain bit value occurs within a range of bits in a bit vector.

## Declaration

```swift
func CFBitVectorGetCountOfBit(_ bv: CFBitVector!, _ range: CFRange, _ value: CFBit) -> CFIndex
```

## Parameters

- `bv`: The bit vector to examine.
- `range`: The range of bits in bv to search.
- `value`: The bit value to count.

## Return Value

Return Value The number of occurrences of value in the specified range of bv.

## See Also

### Getting Information About a Bit Vector

- [CFBitVectorContainsBit(_:_:_:)](corefoundation/cfbitvectorcontainsbit(_:_:_:).md)
- [CFBitVectorGetBitAtIndex(_:_:)](corefoundation/cfbitvectorgetbitatindex(_:_:).md)
- [CFBitVectorGetBits(_:_:_:)](corefoundation/cfbitvectorgetbits(_:_:_:).md)
- [CFBitVectorGetCount(_:)](corefoundation/cfbitvectorgetcount(_:).md)
- [CFBitVectorGetFirstIndexOfBit(_:_:_:)](corefoundation/cfbitvectorgetfirstindexofbit(_:_:_:).md)
- [CFBitVectorGetLastIndexOfBit(_:_:_:)](corefoundation/cfbitvectorgetlastindexofbit(_:_:_:).md)
