N=int(input()) A=[] for i in range(1,N): if N%i==0: A.append(i) A.append(N//i) print(len(set(A)))