adding number of topics. closes #21