import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            solve(in);
        }
    }

    private static void solve(Scanner in) {
        int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();
        int count = 0;
        for (int x = a; x <= b; x++) {
            if (c % x == 0) {
                count++;
            }
        }
        System.out.println(count);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            solve(in);
        }
    }

    private static void solve(Scanner in) {
        int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();
        int count = 0;
        for (int x = a; x <= b; x++) {
            if (c % x == 0) {
                count++;
            }
        }
        System.out.println(count);
    }
} Main public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            solve(in);
        }
    } main {
        try (Scanner in = new Scanner(System.in)) {
            solve(in);
        }
    } try (Scanner in = new Scanner(System.in)) {
            solve(in);
        } {
            solve(in);
        } Scanner in = new Scanner(System.in) Scanner in = new Scanner(System.in) new Scanner(System.in) solve(in) solve in String[] args args private static void solve(Scanner in) {
        int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();
        int count = 0;
        for (int x = a; x <= b; x++) {
            if (c % x == 0) {
                count++;
            }
        }
        System.out.println(count);
    } solve {
        int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();
        int count = 0;
        for (int x = a; x <= b; x++) {
            if (c % x == 0) {
                count++;
            }
        }
        System.out.println(count);
    } int a = in.nextInt() a in.nextInt() in.nextInt in b = in.nextInt() b in.nextInt() in.nextInt in c = in.nextInt(); c in.nextInt() in.nextInt in int count = 0; count 0 for (int x = a; x <= b; x++) {
            if (c % x == 0) {
                count++;
            }
        } int x = a; int x = a; x a x <= b x b x++ x++ x {
            if (c % x == 0) {
                count++;
            }
        } {
            if (c % x == 0) {
                count++;
            }
        } if (c % x == 0) {
                count++;
            } c % x == 0 c % x c x 0 {
                count++;
            } count++ count System.out.println(count) System.out.println System.out System System.out count Scanner in in public class Main {

    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            solve(in);
        }
    }

    private static void solve(Scanner in) {
        int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();
        int count = 0;
        for (int x = a; x <= b; x++) {
            if (c % x == 0) {
                count++;
            }
        }
        System.out.println(count);
    }
} public class Main {

    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            solve(in);
        }
    }

    private static void solve(Scanner in) {
        int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();
        int count = 0;
        for (int x = a; x <= b; x++) {
            if (c % x == 0) {
                count++;
            }
        }
        System.out.println(count);
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            solve(in);
        }
    }

    private static void solve(Scanner in) {
        int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();
        int count = 0;
        for (int x = a; x <= b; x++) {
            if (c % x == 0) {
                count++;
            }
        }
        System.out.println(count);
    }
}