Infinite Grid in 2.80
Currently there is no way of of limiting the grid to let's say 10 squares. You could however disable it under "Overlays", create a plane and subdivide it with a right click. Then under Object Panel > Viewport Display set "Display as" to Wire and check "All edges".