0 in count field for number of rows to display per page in a table view

I have a count field in my page whose screenshot is attached. When I enter 0 it lists all the records and doesn't show the 0 in the count field. What is the standard way or user satisfactory way to handle this. I am a tester and I want to make sure that the end user has the best user experience.

Before entering 0:

enter image description here

After entering 0:

enter image description here