---
title: count
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nshashtable/count
---

# count

The number of elements in the hash table.

## Declaration

```swift
var count: Int { get }
```

## See Also

### Accessing Content

- [anyObject](foundation/nshashtable/anyobject.md)
- [allObjects](foundation/nshashtable/allobjects.md)
- [setRepresentation](foundation/nshashtable/setrepresentation.md)
- [contains(_:)](foundation/nshashtable/contains(_:).md)
- [member(_:)](foundation/nshashtable/member(_:).md)
- [objectEnumerator()](foundation/nshashtable/objectenumerator().md)
