Is there MS SQL Server function that counts the number of times a particular character appears in a string?
You can do that using replace and len.
replace
len
Count number of x characters in str:
x
str
len(str) - len(replace(str, 'x', ''))