Actually it's even more nuanced. It says
The approximate number of horizontal gridlines inside the chart area.
So it's just a guide. Ticks works much more reliably.