def main():
    data = []
    while 1:
        n = input().split()
        a = int(n[0])
        b = int(n[1])
        c = int(n[2])
        div = 0

        for i in range(a,b):
            if c % i == 0:
                div += 1

        print(div)

if __name__ == '__main__':
    main()