n = int(input()) l = [i+1 for i in range(n+1)] l2 = [] for i in l: if n % i == 0: l2.append(i) print(len(l2))