The result of replacing a text in a string: the resulting string and the number of replacements made.
Create an instance of the replacement result initializing both fields.
Get the number of replacements made.
Get the result string.