<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def translate(self, text):
 """ Translate text, returns the modified text. """


        # Reset substitution counter
        self.count = 0

        # Process text
        return self._make_regex().sub(self, text)