How can I define a maximal amount of ticks in a d3.svg.axis
===

I have the problem that the labels of my `d3.svg.axis` are sometimes overlapping. Therefor I would like to reduce the maximal amount of ticks and labels to a certain amount.

I can not seem to find a solution in the [API documentation](https://github.com/mbostock/d3/wiki/SVG-Axes).