Is there a way to fix the number of labels on the Axes Grid?

related: Axis labels are out of control