I do believe you need both quality and quantity. But it's better to write a bad piece well than to write a good piece badly, if you know what I mean.
Aim for ~1000 words, your teacher might be a bit disillusioned. Once its handwritten though, it may look like it's 1500 words, simply because...