You are given a list of n integers, and your task is to calculate the number of distinct values in the list.