x = int(input())

i = 1
j = 0

while x >= i:
    
    if x % i == 0:
        j += 1
    
    i += 1

print(j)