adding the pagination_count option for index page #2283

@daxter Please provide feedback, I still don't know if I create enough tests.