alternatively:
global template::parse_level set include_level [llength $parse_level]
should work well.