convert number of pages to int