Hi,
try this to get lenght of string
string str = "1/2/3/4/7";
int ttl = str.Length;
string[] resstr = str.Split('/');
int rwcnt=resstr.Length;
In the above code ttl means length of string including '/'
and rwcnt means length means excluding '/'
All the Best