Adds number of pages to output
Allow all spree versions >= 1.3