How many repeats may the doctor issue on my prescription?

How many repeats may the doctor issue on my prescription?

The law only allows a prescription to be repeated for six months.