Get the number of filterlevels below the current tree node as the input to CompileFiltStructTree based on a filtertree.