If length then this is very simple:
// You take your input value as string
string input = textBox_1.Text;
// Then you split this string with those character that you choose
// and you've got array of strings
string[] arr = input.Split(',');
// And for the end you output array length in the second text box
textBox_2.Text = arr.Length;