count number of specific characters in a string c# code example Example: find character from string c# count int count = Regex.Matches(test, "word").Count;