# llLinksetDataCountKeys

*LSL function*

```lsl
integer integer llLinksetDataCountKeys();
```

- Returns: `integer`
- Energy: 10

The **`llLinksetDataCountKeys`** returns the number of unique keys that have been stored in the linkset's datastore.

Returns an [integer](https://wiki.secondlife.com/wiki/integer) number of keys used in the linkset store.

```lsl title="How to use" frame="terminal"
integer result = llLinksetDataCountKeys();
```

## See also

### Functions

- [llLinksetDataAvailable](/functions/llLinksetDataAvailable/)
- [llLinksetDataCountFound](/functions/llLinksetDataCountFound/)
- [llLinksetDataDelete](/functions/llLinksetDataDelete/)
- [llLinksetDataDeleteFound](/functions/llLinksetDataDeleteFound/)
- [llLinksetDataFindKeys](/functions/llLinksetDataFindKeys/)
- [llLinksetDataListKeys](/functions/llLinksetDataListKeys/)
- [llLinksetDataRead](/functions/llLinksetDataRead/)
- [llLinksetDataReset](/functions/llLinksetDataReset/)
- [llLinksetDataWrite](/functions/llLinksetDataWrite/)

---

*Source: [LlLinksetDataCountKeys](https://wiki.secondlife.com/wiki/LlLinksetDataCountKeys) on the Second Life Wiki. Content from the Second Life Wiki article LlLinksetDataCountKeys (revision 1219030, 2026-09-10), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llLinksetDataCountKeys/
