How many times does a manuscript need to be edited?

This is a difficult question, as the answer is different for everyone. Always make the effort to look through your work before you hand it to an editor- there may be simple things that you could fix yourself. You can consult with your editor if you think that you need more editing.