Count code sections (fix #204)