#![allow(dead_code)]
use std::io;

fn main() {
    solve_d();
}

fn solve_d() {
    let mut x = String::new();

    io::stdin().read_line(&mut x).unwrap();

    let v: Vec<u32> = x.trim()
        .split(' ')
        .map(|s| s.parse::<u32>().unwrap())
        .collect();

    let a = v[0];
    let b = v[1];
    let c = v[2];
    let mut count = 0;
    for i in a..b {
        if (c % i) == 0 {
            count += 1;
        }
    }
    println!("{}", count);
}

fn solve_c() {
    loop {
        let mut x = String::new();
        io::stdin().read_line(&mut x).unwrap();

        let mut v: Vec<u32> = x.trim()
            .split(' ')
            .map(|s| s.parse::<u32>().unwrap())
            .collect();

        v.sort();
        if v[0] == 0 && v[1] == 0 {
            break;
        } else {
            println!("{} {}", v[0], v[1]);
        }
    }
}

fn solve_b() {
    let mut i = 1;
    loop {
        let mut x = String::new();
        io::stdin().read_line(&mut x).unwrap();
        let n = x.trim().parse::<u64>().unwrap();

        if n == 0 {
            break;
        } else {
            println!("Case {}: {}", i, n);
            i += 1;
        }
    }
}

fn solve_a() {
    for _i in 0..1000 {
        println!("Hello World");
    }
}

