added level index page

added a method to calculate level count in level model