import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {
    public static void main(String[] args) throws IOException {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        	String strArr[] = br.readLine().split(" ");
            int a=Integer.parseInt(strArr[0]);
            int b=Integer.parseInt(strArr[1]);
            int c=Integer.parseInt(strArr[2]);

            int kazu=0;
            int res=0;

            for(int i=a; i<=b; i++){
            	res=c%i;
            	if(res==0){
            		kazu++;
            	}
            	res=0;
            }
            System.out.println(kazu);
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
    public static void main(String[] args) throws IOException {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        	String strArr[] = br.readLine().split(" ");
            int a=Integer.parseInt(strArr[0]);
            int b=Integer.parseInt(strArr[1]);
            int c=Integer.parseInt(strArr[2]);

            int kazu=0;
            int res=0;

            for(int i=a; i<=b; i++){
            	res=c%i;
            	if(res==0){
            		kazu++;
            	}
            	res=0;
            }
            System.out.println(kazu);
    }
} Main public static void main(String[] args) throws IOException {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        	String strArr[] = br.readLine().split(" ");
            int a=Integer.parseInt(strArr[0]);
            int b=Integer.parseInt(strArr[1]);
            int c=Integer.parseInt(strArr[2]);

            int kazu=0;
            int res=0;

            for(int i=a; i<=b; i++){
            	res=c%i;
            	if(res==0){
            		kazu++;
            	}
            	res=0;
            }
            System.out.println(kazu);
    } main {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        	String strArr[] = br.readLine().split(" ");
            int a=Integer.parseInt(strArr[0]);
            int b=Integer.parseInt(strArr[1]);
            int c=Integer.parseInt(strArr[2]);

            int kazu=0;
            int res=0;

            for(int i=a; i<=b; i++){
            	res=c%i;
            	if(res==0){
            		kazu++;
            	}
            	res=0;
            }
            System.out.println(kazu);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String strArr[] = br.readLine().split(" "); strArr br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a=Integer.parseInt(strArr[0]); a Integer.parseInt(strArr[0]) Integer.parseInt Integer strArr[0] strArr 0 int b=Integer.parseInt(strArr[1]); b Integer.parseInt(strArr[1]) Integer.parseInt Integer strArr[1] strArr 1 int c=Integer.parseInt(strArr[2]); c Integer.parseInt(strArr[2]) Integer.parseInt Integer strArr[2] strArr 2 int kazu=0; kazu 0 int res=0; res 0 for(int i=a; i<=b; i++){
            	res=c%i;
            	if(res==0){
            		kazu++;
            	}
            	res=0;
            } int i=a; int i=a; i a i<=b i b i++ i++ i {
            	res=c%i;
            	if(res==0){
            		kazu++;
            	}
            	res=0;
            } {
            	res=c%i;
            	if(res==0){
            		kazu++;
            	}
            	res=0;
            } res=c%i res c%i c i if(res==0){
            		kazu++;
            	} res==0 res 0 {
            		kazu++;
            	} kazu++ kazu res=0 res 0 System.out.println(kazu) System.out.println System.out System System.out kazu String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {
    public static void main(String[] args) throws IOException {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        	String strArr[] = br.readLine().split(" ");
            int a=Integer.parseInt(strArr[0]);
            int b=Integer.parseInt(strArr[1]);
            int c=Integer.parseInt(strArr[2]);

            int kazu=0;
            int res=0;

            for(int i=a; i<=b; i++){
            	res=c%i;
            	if(res==0){
            		kazu++;
            	}
            	res=0;
            }
            System.out.println(kazu);
    }
}