code: def frequency_measurement(shell_ctx):
      
      freq = update_frequency(shell_ctx)
      count = 0
      base = datetime.datetime.utcnow()
      date_list = [base - datetime.timedelta(days=x) for x in range(0, DAYS_AGO)]
      for day in date_list:
          count += 1 if freq.get(day_format(day), 0) > 0 else 0
  
      return count
docs: measures how many times a user has used this program in the last calendar week