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

# ILampArray::GetLampCount method

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

# ILampArray::GetLampCount

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](/build/core-features/common/lighting/gc-lighting-toc)\
[ILampArray](/reference/lighting/lamparray/interfaces/ilamparray/ilamparray)
