string Str = "hello zswang you ok? zswang ;
string Sub = "zswang" ;
int Cnt = (Str . Length - Str . Replace(Sub, "" ) . Length) / Sub . Length;