> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GetLampCount

> Returns the total number of individually addressable Lamps on a LampArray peripheral, used to iterate indices when driving RGB lighting.

Returns the number of Lamps that are part of this ILampArray.

## Syntax

```cpp theme={null}
uint32_t GetLampCount(
)
```

### Parameters

This method has no parameters.

### Return value

Type: uint32\_t

The number of lamps in the ILampArray.

## Requirements

**Header:** LampArray.h

**Library:** xgameplatform.lib

**Supported platforms:** XBOX One family consoles and XBOX Series consoles

## See also

[Lighting API Overview](https://docs.xbox.com/build/core-features/common/lighting/gc-lighting-toc.md)\
[ILampArray](https://docs.xbox.com/reference/lighting/lamparray/interfaces/ilamparray/ilamparray.md)


## Related topics

- [GetLampInfo](https://docs.xbox.com/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampinfo.md)
- [GetIndex](https://docs.xbox.com/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getindex.md)
- [ILampArray (Interface contents)](https://docs.xbox.com/reference/lighting/lamparray/interfaces/ilamparray/ilamparray.md)
- [ILampInfo (Interface contents)](https://docs.xbox.com/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo.md)
- [GetIndicesCountForPurposes](https://docs.xbox.com/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getindicescountforpurposes.md)
