How many mistakes are allowed in a driving test in united kingdom ؟

How many mistakes are allowed in a driving test in united kingdom ؟