Think this depends on the subject - some subjects do have a limit, but you can retake some subjects as many times as you want (I think English & Maths A-level come under this). Your school/college should be able to advise best on how many times you can retake your specific subjects.