code: def increase_and_check_counter(self):
          ''' increase counter by one and check whether a period is end '''
          self.counter += 1
          self.counter %= self.period
          if not self.counter:
              return True
          else:
              return Falsf increase_and_check_counter(self):
          ''' increase counter by one and check whether a period is end '''
          self.counter += 1
          self.counter %= self.period
          if not self.counter:
              return True
          else:
              return False
docs: increase counter by one and check whether a period is end