Is there MS SQL Server function that counts the number of times a particular character appears in a string?
Use this function begining from SQL SERVER 2016
Select Count(value) From STRING_SPLIT('AAA AAA AAA',' '); -- Output : 3
When This function used with count function it gives you how many character exists in string