code: def read(self, vals):
          
          i = 0
          count = int(vals[i])
          i += 1
          for _ in range(count):
              obj = TypicalOrExtremePeriod()
              obj.read(vals[i:i + obj.field_count])
              self.add_typical_or_extreme_period(obj)
              i += obj.field_count
docs: Read values.
  
          Args:
              vals (list): list of strings representing values