Change totalPages behaviour
Merge pull request #5 from ads199/page_count_behaviour

Change totalPages behaviour