a=int(input())
reminder = 2

for i in range(2,int(a/2)+1):
    if a % i == 0:
        reminder += 1

print(reminder)