added new option to set the number of tickmarks/labels that should be drawn