The number of labels corresponds to the number of primary tick marks.
You can set the number of divisions on an axis (x,y,z) by clicking
on the axis and selecting "SetNdivisions"
or with statements like hist->GetXaxis()->SetNDivisions(ndiv)
where:
ndiv = N1 + 100*N2 + 10000*N3
N1=number of primary divisions
N2=number of secondary divisions
N3=number of tertiary divisions
if ndiv is positive, Root will try to optimize the number of divisions
around the specified values.
If you do not want this optimization, you can give a negative value
to ndiv.
You can see examples in TGaxis::PaintAxis
http://root.cern.ch/root/html/TGaxis.html
Rene Brun