import sys
from pandas import read_csv

input_file = sys.argv[1]
col_index = int(sys.argv[2])

data = read_csv(input_file)

dataFrame = data.iloc[:,col_index].values

s = set(dataFrame)

# print(s)
print(len(s))