Upper and lower bounds for rich lines in grids