# GetAttributeCount()

Source: https://help.malighting.com/grandMA3/2.3/HTML/lua_objectfree_getattributecount.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 **GetAttributeCount** Lua function returns the total number of attribute definitions in the show.

## Arguments

This function does not accept any arguments.

## Return

- **Integer**:\
  The returned integer number represents the total amount of attribute definitions in the show file.

## Example

This example prints the returned number in the Command Line History.

|                                                                                        |
| -------------------------------------------------------------------------------------- |
| [Copy Code](javascript:void\(0\))Lua                                                   |
| ```
return function()
    Printf("Attribute count is %i", GetAttributeCount())
end
``` |