import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
        int answer = 0;
        while(a != b + 1) {
            double d = a;
            int check = c / a;
            double check2 = c / d;
            if(check == check2){
                answer++;
            }
            a++;
        }
        System.out.println(answer);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
        int answer = 0;
        while(a != b + 1) {
            double d = a;
            int check = c / a;
            double check2 = c / d;
            if(check == check2){
                answer++;
            }
            a++;
        }
        System.out.println(answer);
    }
} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
        int answer = 0;
        while(a != b + 1) {
            double d = a;
            int check = c / a;
            double check2 = c / d;
            if(check == check2){
                answer++;
            }
            a++;
        }
        System.out.println(answer);
    } main {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
        int answer = 0;
        while(a != b + 1) {
            double d = a;
            int check = c / a;
            double check2 = c / d;
            if(check == check2){
                answer++;
            }
            a++;
        }
        System.out.println(answer);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int c = scan.nextInt(); c scan.nextInt() scan.nextInt scan int answer = 0; answer 0 while(a != b + 1) {
            double d = a;
            int check = c / a;
            double check2 = c / d;
            if(check == check2){
                answer++;
            }
            a++;
        } a != b + 1 a b + 1 b 1 {
            double d = a;
            int check = c / a;
            double check2 = c / d;
            if(check == check2){
                answer++;
            }
            a++;
        } double d = a; d a int check = c / a; check c / a c a double check2 = c / d; check2 c / d c d if(check == check2){
                answer++;
            } check == check2 check check2 {
                answer++;
            } answer++ answer a++ a System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
        int answer = 0;
        while(a != b + 1) {
            double d = a;
            int check = c / a;
            double check2 = c / d;
            if(check == check2){
                answer++;
            }
            a++;
        }
        System.out.println(answer);
    }
} public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
        int answer = 0;
        while(a != b + 1) {
            double d = a;
            int check = c / a;
            double check2 = c / d;
            if(check == check2){
                answer++;
            }
            a++;
        }
        System.out.println(answer);
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
        int answer = 0;
        while(a != b + 1) {
            double d = a;
            int check = c / a;
            double check2 = c / d;
            if(check == check2){
                answer++;
            }
            a++;
        }
        System.out.println(answer);
    }
}
