public static Int32 SubStringCount(string src, char find) { int ret = 0; foreach (char s in src) { if (s == find) { ++ret; } } return ret; }