#C1907. Count Unique Elements
Count Unique Elements
Count Unique Elements
You are given a list of integers. Your task is to count the number of unique elements in the list. In other words, you need to determine how many distinct integers appear in the list.
The input will begin with a number n (where n \ge 0) denoting the number of elements in the list. If n > 0, the next line will contain n space-separated integers.
Print a single integer representing the count of unique elements in the list.
For example, if the list is [1, 2, 2, 3, 4, 4, 4, 5], the answer is 5.
inputFormat
The first line of input contains one non-negative integer n representing the number of elements in the list. If n > 0, the second line contains n space-separated integers.
outputFormat
Output a single integer which is the count of unique elements in the list.
## sample8
1 2 2 3 4 4 4 5
5