# your code goes here
#537 userid

N=int(input())
i=1
c=0
s=0
while i*i<=N:
    if N%i==0:
        c+=1
  #      print(c)
    if i*i==N:
        s+=1
    i+=1
c*=2
if s==1:
    c-=1
print(c)