LevelCount returns the number of levels in a dimension.
In the video, LevelCount returns the number of levels in the Account dimension for the default hierarchy.
Rules and TurboIntegrator
Version 11 and 12
LevelCount(Dimension, Hierarchy)