I'm using C# stringBuilder to replace string with the best performance, the the replace is never finish without informing the user how many replacements were made, but the Replace() method only return the stringBuilder instance, also I can't find any method in stringBuilder helping to count the replacements.
So is there anyway to find out how many replacements were made? Thank for reading :)