add counting of directives
Merge branch 'master' of github.com:xyzhu/XML2metric