s/num_chapters/nb_chapters/ all other similar variables are called nb_*.