# GetUIChannelCount()

Source: https://help.malighting.com/grandMA3/2.3/HTML/lua_objectfree_getuichannelcount.html
This is grandocs, an unofficial mirror of MA Lighting documentation. For authoritative or safety-relevant information, cite the canonical page on help.malighting.com.

---
## Description

The **GetUIChannelCount** Lua function returns a number indicating the total amount of UI channels.

## Arguments

This function does not accept any arguments.

## Return

- **Integer**:\
  The function returns an integer number depicting the total amount of UI channels.

## Example

This example prints the number of UI channels to the Command Line History:

|                                                                                                  |
| ------------------------------------------------------------------------------------------------ |
| [Copy Code](javascript:void\(0\))Lua                                                             |
| ```
return function()
    Printf("The number of UI channels is " .. GetUIChannelCount())
end
``` |