I don't believe there is a limit, as long as you meet the requirements for the state in question. I've heard of at least one individual that took it 13 times before passing.
It depends on the type and strength of x-rays being administered. On average, up to 300 simple x-rays can be taken in a year. Pregnant women can get at most 10 x-rays during her pregnancy.