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