Hi, this compiled fine under OS3.9 (I have AISS installed).
One thing I noticed - the number of apples could not be set back to 0 once it had been altered, but the oranges and pears could be... Everything else worked as expected, as far I have tested it...