input: Write a function to count the number of unique elements in an integer array and return that count.
  def num_unique_elements(arr):
      unique_arr = set(arr)
      return len(unique_arr)
  assert num_unique_elements([1, 2, 3, 2, 1, 4, 7, 8, 9, 8])==7
  assert num_unique_elements([])==0
  assert num_unique_elements([5, 5, 5, 5])==1
  assert num_unique_elements([1, 2, 3, 4, 5])==5
  assert num_unique_elements([9, 8, 7, 6, 5, 4, 3, 2, 1])==9
output: def num_unique_elements(arr):
      unique_arr = set(arr)
      return len(unique_arr)