int getCharInfo(string child,string parent){ int count= 0; int index = 0; while((index = parent.IndexOf(child))!=-1){ count++; index = index + chiled.Lenth; } }