How to get total no of control on a particular page

foreach (Control ctl in Page.Controls[1].Controls )

{

TextBox tb = ctl as TextBox;

if (tb!=null)

{

tb.Text = "" ;

}

}