input: Write a python function to calculate the number of outcomes for a given n.
  assert count_outcomes(0) == 1
  assert count_outcomes(1) == 3
  assert count_outcomes(2) == 7
  assert count_outcomes(3) == 15
  assert count_outcomes(8) == 256
output: def count_outcomes(n):
      return 2**n + 1