use std::io;
use std::str::FromStr;

fn read_line() -> String {
    let mut s = String::new();
    io::stdin().read_line(&mut s).unwrap();
    s
}

macro_rules! from_line {
    ($($a:ident : $t:ty),+) => {
        $(let $a: $t;)+
        {
            let _line = read_line();
            let mut _it = _line.trim().split_whitespace();
            $($a = _it.next().unwrap().parse().unwrap();)+
                assert!(_it.next().is_none());
        }
    };
}

fn divisor(l: i32, u: i32, n: i32) -> i32 {
    let mut count = 0;
    for i in l..u+1 {
        if n % i == 0 {
            count += 1;
        }
    }
    count
}

fn main() {
    from_line!(a: i32, b: i32, c: i32);

    println!("{}", divisor(a, b, c));
}

