Improve tick-count setting API.

Now, ticks(count) sets the number of ticks and returns the
calling QuantitiveScale, instead of setting the number of ticks
and returning that many ticks.

API breaking change.

Close #1057.
I suspect the generated code will look the same. What do you mean by "using instance var"?