The page count must be an integer between 10 - 1000
The key page count must be an integer between 5 - 100
If max value display zero, it shows everything, if it is bigger than 0, it will truncate. If it is -1, it will not show the value without edit for strings, for others, it display everything.
So that the GUI does not crash, we limit the max key count.