Page - Maximum Value

Page - Maximum Value

I can only place manual number in Maximum filed for numbers in pages. Is there way I can fetch value for that ?