import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] str = sc.nextLine().split(" ");
        int start = Integer.parseInt(str[0]);
        int end = Integer.parseInt(str[1]);
        int num = Integer.parseInt(str[2]);

        System.out.println(Function(start,end,num));
        sc.close();
    }

    public static int Function(int start, int end, int num){
        int ans = 0;
        for(;start <= end; ){
            if( num%start == 0 ) ans++;
            start++;
        }
        return ans;
    }

} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] str = sc.nextLine().split(" ");
        int start = Integer.parseInt(str[0]);
        int end = Integer.parseInt(str[1]);
        int num = Integer.parseInt(str[2]);

        System.out.println(Function(start,end,num));
        sc.close();
    }

    public static int Function(int start, int end, int num){
        int ans = 0;
        for(;start <= end; ){
            if( num%start == 0 ) ans++;
            start++;
        }
        return ans;
    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] str = sc.nextLine().split(" ");
        int start = Integer.parseInt(str[0]);
        int end = Integer.parseInt(str[1]);
        int num = Integer.parseInt(str[2]);

        System.out.println(Function(start,end,num));
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        String[] str = sc.nextLine().split(" ");
        int start = Integer.parseInt(str[0]);
        int end = Integer.parseInt(str[1]);
        int num = Integer.parseInt(str[2]);

        System.out.println(Function(start,end,num));
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] str = sc.nextLine().split(" "); str sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int start = Integer.parseInt(str[0]); start Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 int end = Integer.parseInt(str[1]); end Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 int num = Integer.parseInt(str[2]); num Integer.parseInt(str[2]) Integer.parseInt Integer str[2] str 2 System.out.println(Function(start,end,num)) System.out.println System.out System System.out Function(start,end,num) Function start end num sc.close() sc.close sc String[] args args public static int Function(int start, int end, int num){
        int ans = 0;
        for(;start <= end; ){
            if( num%start == 0 ) ans++;
            start++;
        }
        return ans;
    } Function {
        int ans = 0;
        for(;start <= end; ){
            if( num%start == 0 ) ans++;
            start++;
        }
        return ans;
    } int ans = 0; ans 0 for(;start <= end; ){
            if( num%start == 0 ) ans++;
            start++;
        } ; start <= end start end {
            if( num%start == 0 ) ans++;
            start++;
        } {
            if( num%start == 0 ) ans++;
            start++;
        } if( num%start == 0 ) ans++; num%start == 0 num%start num start 0 ans++ ans start++ start return ans; ans int start start int end end int num num public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] str = sc.nextLine().split(" ");
        int start = Integer.parseInt(str[0]);
        int end = Integer.parseInt(str[1]);
        int num = Integer.parseInt(str[2]);

        System.out.println(Function(start,end,num));
        sc.close();
    }

    public static int Function(int start, int end, int num){
        int ans = 0;
        for(;start <= end; ){
            if( num%start == 0 ) ans++;
            start++;
        }
        return ans;
    }

} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] str = sc.nextLine().split(" ");
        int start = Integer.parseInt(str[0]);
        int end = Integer.parseInt(str[1]);
        int num = Integer.parseInt(str[2]);

        System.out.println(Function(start,end,num));
        sc.close();
    }

    public static int Function(int start, int end, int num){
        int ans = 0;
        for(;start <= end; ){
            if( num%start == 0 ) ans++;
            start++;
        }
        return ans;
    }

} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] str = sc.nextLine().split(" ");
        int start = Integer.parseInt(str[0]);
        int end = Integer.parseInt(str[1]);
        int num = Integer.parseInt(str[2]);

        System.out.println(Function(start,end,num));
        sc.close();
    }

    public static int Function(int start, int end, int num){
        int ans = 0;
        for(;start <= end; ){
            if( num%start == 0 ) ans++;
            start++;
        }
        return ans;
    }

}