add method `maxSubLevels` to count max sub levels