int CountWords(string input, string wordToFind)
{
string pattern = string.Format(@"\b{0}\b", wordToFind);
return Regex.Matches(input, pattern).Count;
}
You can call this method like this:
e.g.
int count = CountWords("I have a -Voucher in /Voucher", "Voucher")