input: Write a Python function to determine the total number of unset bits in the range from 1 to n.
  assert count_unset_bits(2) == 1
  assert count_unset_bits(5) == 4
  assert count_unset_bits(14) == 17
output: def count_unset_bits(n):
      unset_bit_count = 0
      for i in range(1, n + 1):
          unset_bit_count += bin(i).count('0') - 1
      return unset_bit_count