# GetSubfixtureCount()

Source: https://help.malighting.com/grandMA3/2.4/HTML/lua_objectfree_getsubfixturecount.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 **GetSubfixtureCount** Lua function returns the total number of fixtures that are patched within the show file.

## Arguments

This function does not accept any arguments.

## Return

- **Integer**:\
  The returned integer number represents the total amount of patched fixtures on all the stages in the show file.

## Example

This example prints the total number of patched fixtures in the Command Line History:

|                                                                                                         |
| ------------------------------------------------------------------------------------------------------- |
| [Copy Code](javascript:void\(0\))Lua                                                                    |
| ```
return function ()
    Printf('Total number of patched fixtures: %i', GetSubfixtureCount())
end
``` |