This works for the "show on navigation" check. Is there also a solution when your hierarchical view shows only a certain category? So you have something like Documents.Where("NodeParentID = " + NodeID + " AND DocumentCategory = 'MyCategory'").Count
. I suppose there's no field to use in the where field.