thisComp.numLayers;
Counts the total number of layers in the current composition and displays it dynamically in a text layer. Whenever you add or remove layers, the displayed number updates instantly, making it perfect for automated templates and project debugging.
Contributed by:
Display (calculate) total layer counts in metadata overlays or track layer-heavy comps at a glance.