Add level counter classes to page tree