code: def count(self, sub, start=0, end=-1):
          
          return self.value_no_colors.count(sub, start, end)
docs: Return the number of non-overlapping occurrences of substring sub in string[start:end].
  
          Optional arguments start and end are interpreted as in slice notation.
  
          :param str sub: Substring to search.
          :param int start: Beginning position.
          :param int end: Stop comparison at this position.