import java.util.Scanner;

/**
 * Created by labuser on 2016/04/20.
 */
public class Main {
    public static void main(String[] args) {
        new Main().run();

    }

    private void run() {

        int a, b, c;

        Scanner sc = new Scanner(System.in);
        String[] input = sc.nextLine().split(" ");
        a = Integer.parseInt(input[0]);
        b = Integer.parseInt(input[1]);
        c = Integer.parseInt(input[2]);
        int cnt = 0;
        for (int i = a; i <= b; i++) {
            if (c % i == 0) cnt++;
        }
        System.out.println(cnt);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        new Main().run();

    }

    private void run() {

        int a, b, c;

        Scanner sc = new Scanner(System.in);
        String[] input = sc.nextLine().split(" ");
        a = Integer.parseInt(input[0]);
        b = Integer.parseInt(input[1]);
        c = Integer.parseInt(input[2]);
        int cnt = 0;
        for (int i = a; i <= b; i++) {
            if (c % i == 0) cnt++;
        }
        System.out.println(cnt);
    }
} Main public static void main(String[] args) {
        new Main().run();

    } main {
        new Main().run();

    } new Main().run() new Main().run new Main() String[] args args private void run() {

        int a, b, c;

        Scanner sc = new Scanner(System.in);
        String[] input = sc.nextLine().split(" ");
        a = Integer.parseInt(input[0]);
        b = Integer.parseInt(input[1]);
        c = Integer.parseInt(input[2]);
        int cnt = 0;
        for (int i = a; i <= b; i++) {
            if (c % i == 0) cnt++;
        }
        System.out.println(cnt);
    } run {

        int a, b, c;

        Scanner sc = new Scanner(System.in);
        String[] input = sc.nextLine().split(" ");
        a = Integer.parseInt(input[0]);
        b = Integer.parseInt(input[1]);
        c = Integer.parseInt(input[2]);
        int cnt = 0;
        for (int i = a; i <= b; i++) {
            if (c % i == 0) cnt++;
        }
        System.out.println(cnt);
    } int a a b b c; c Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] input = sc.nextLine().split(" "); input sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " a = Integer.parseInt(input[0]) a Integer.parseInt(input[0]) Integer.parseInt Integer input[0] input 0 b = Integer.parseInt(input[1]) b Integer.parseInt(input[1]) Integer.parseInt Integer input[1] input 1 c = Integer.parseInt(input[2]) c Integer.parseInt(input[2]) Integer.parseInt Integer input[2] input 2 int cnt = 0; cnt 0 for (int i = a; i <= b; i++) {
            if (c % i == 0) cnt++;
        } int i = a; int i = a; i a i <= b i b i++ i++ i {
            if (c % i == 0) cnt++;
        } {
            if (c % i == 0) cnt++;
        } if (c % i == 0) cnt++; c % i == 0 c % i c i 0 cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt public class Main {
    public static void main(String[] args) {
        new Main().run();

    }

    private void run() {

        int a, b, c;

        Scanner sc = new Scanner(System.in);
        String[] input = sc.nextLine().split(" ");
        a = Integer.parseInt(input[0]);
        b = Integer.parseInt(input[1]);
        c = Integer.parseInt(input[2]);
        int cnt = 0;
        for (int i = a; i <= b; i++) {
            if (c % i == 0) cnt++;
        }
        System.out.println(cnt);
    }
} public class Main {
    public static void main(String[] args) {
        new Main().run();

    }

    private void run() {

        int a, b, c;

        Scanner sc = new Scanner(System.in);
        String[] input = sc.nextLine().split(" ");
        a = Integer.parseInt(input[0]);
        b = Integer.parseInt(input[1]);
        c = Integer.parseInt(input[2]);
        int cnt = 0;
        for (int i = a; i <= b; i++) {
            if (c % i == 0) cnt++;
        }
        System.out.println(cnt);
    }
} Main
import java.util.Scanner;

/**
 * Created by labuser on 2016/04/20.
 */
public class Main {
    public static void main(String[] args) {
        new Main().run();

    }

    private void run() {

        int a, b, c;

        Scanner sc = new Scanner(System.in);
        String[] input = sc.nextLine().split(" ");
        a = Integer.parseInt(input[0]);
        b = Integer.parseInt(input[1]);
        c = Integer.parseInt(input[2]);
        int cnt = 0;
        for (int i = a; i <= b; i++) {
            if (c % i == 0) cnt++;
        }
        System.out.println(cnt);
    }
}