<!--
{
  "availability" : [
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TabletopKit",
  "identifier" : "/documentation/TabletopKit/CounterCollection",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "TabletopKit"
    ],
    "preciseIdentifier" : "s:11TabletopKit17CounterCollectionV"
  },
  "title" : "CounterCollection"
}
-->

# CounterCollection

A collection of score counters that can be inspected and modified.

```
struct CounterCollection
```

## Topics

### Getting the counter details

[`var count: Int`](/documentation/TabletopKit/CounterCollection/count)

The number of score counters.

[`var ids: [ScoreCounter.ID]`](/documentation/TabletopKit/CounterCollection/ids)

The identifiers of the score counters.

### Accessing the subscript

[`subscript(ScoreCounter.ID) -> Int64?`](/documentation/TabletopKit/CounterCollection/subscript(_:))

Queries or modifies the value of the score counter with given identifier.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)