The answer may vary depending on the specific policies of your school or teachers. However, generally speaking, if teachers allow revisions for grade improvement, the most common practice is:
d. as many times as you want
This often encourages learning and improvement, but it's always best to check with your specific teacher or school's guidelines.