import sympy as sym

a, b, c = map(int, input().split())

c_divisors_list = sym.divisors(c)
result = []
for c_divisor in c_divisors_list:
    if c_divisor < a or c_divisor > b:
        pass
    else:
        result.append(c_divisor)

print(len(result))



