That really varies a lot... From when I started doing the pattern in earnest I needed four dual lessons before soloing, 26 circuits all in all. But then I already had 13 hours and 25 landings when I started the pattern excercises... I have seen many people at my school needing much more than that (and ending up successfully obtaining their PPL!), and a few who needed way less...