j = int(input())
x = 0
for i in range(1, j+1):
    if j % i == 0:
        x = x + 1

print(x)