num = input().split(" ")
a = int(num[0])
b = int(num[1])
c = int(num[2])
divide = a
count = 0

for i in range(b-a):
    if c % divide == 0:
        count += 1
    divide += 1

if a == b:
    count = 1
    
print(count)