we don't support Ruby 1.8 anymore
determine correct number of pages