count only leaf nodes of toc tree when level is zero