How it works
A repeat until loop keeps going until something becomes true.
It checks each time round, so you do not need to know the number.
A counting loop needs you to know the number. Repeat until works when you do not.
The same repeat until program works for a small jug and a huge barrel.