method for counting chars in a string in C # code example Example: find character from string c# count int count = Regex.Matches(test, "word").Count;