table of content counting