First thing, you can't use same name but once.. In your code,
int count=1;
string name="textBox"+count.ToString();
TextBox name=new TextBox();
name
is used twice...
and, try this as your solution..
int count=1;
string str="textBox"+count.ToString();
TextBox nameTxt=new TextBox();
nameTxt.Text = str ;