[TreeView] fix subnodes counting