import java.util.Scanner;

public class Main{
    public static void main(String[] args){
	Scanner stdin = new Scanner(System.in);
	int a = stdin.nextInt();
	int b = stdin.nextInt();
	int c = stdin.nextInt();
	int i = a;
	int r = 0,s = 0;
	while(i<=b){
	    s = c%i;
	    boolean t = (s == 0);
	    if(t){r++;}
	    else{}
	    i++;
	}
	System.out.println(r);
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
	Scanner stdin = new Scanner(System.in);
	int a = stdin.nextInt();
	int b = stdin.nextInt();
	int c = stdin.nextInt();
	int i = a;
	int r = 0,s = 0;
	while(i<=b){
	    s = c%i;
	    boolean t = (s == 0);
	    if(t){r++;}
	    else{}
	    i++;
	}
	System.out.println(r);
    }
} Main public static void main(String[] args){
	Scanner stdin = new Scanner(System.in);
	int a = stdin.nextInt();
	int b = stdin.nextInt();
	int c = stdin.nextInt();
	int i = a;
	int r = 0,s = 0;
	while(i<=b){
	    s = c%i;
	    boolean t = (s == 0);
	    if(t){r++;}
	    else{}
	    i++;
	}
	System.out.println(r);
    } main {
	Scanner stdin = new Scanner(System.in);
	int a = stdin.nextInt();
	int b = stdin.nextInt();
	int c = stdin.nextInt();
	int i = a;
	int r = 0,s = 0;
	while(i<=b){
	    s = c%i;
	    boolean t = (s == 0);
	    if(t){r++;}
	    else{}
	    i++;
	}
	System.out.println(r);
    } Scanner stdin = new Scanner(System.in); stdin new Scanner(System.in) int a = stdin.nextInt(); a stdin.nextInt() stdin.nextInt stdin int b = stdin.nextInt(); b stdin.nextInt() stdin.nextInt stdin int c = stdin.nextInt(); c stdin.nextInt() stdin.nextInt stdin int i = a; i a int r = 0 r 0 s = 0; s 0 while(i<=b){
	    s = c%i;
	    boolean t = (s == 0);
	    if(t){r++;}
	    else{}
	    i++;
	} i<=b i b {
	    s = c%i;
	    boolean t = (s == 0);
	    if(t){r++;}
	    else{}
	    i++;
	} s = c%i s c%i c i boolean t = (s == 0); t (s == 0) s 0 if(t){r++;}
	    else{} t {r++;} r++ r {} i++ i System.out.println(r) System.out.println System.out System System.out r String[] args args public class Main{
    public static void main(String[] args){
	Scanner stdin = new Scanner(System.in);
	int a = stdin.nextInt();
	int b = stdin.nextInt();
	int c = stdin.nextInt();
	int i = a;
	int r = 0,s = 0;
	while(i<=b){
	    s = c%i;
	    boolean t = (s == 0);
	    if(t){r++;}
	    else{}
	    i++;
	}
	System.out.println(r);
    }
} public class Main{
    public static void main(String[] args){
	Scanner stdin = new Scanner(System.in);
	int a = stdin.nextInt();
	int b = stdin.nextInt();
	int c = stdin.nextInt();
	int i = a;
	int r = 0,s = 0;
	while(i<=b){
	    s = c%i;
	    boolean t = (s == 0);
	    if(t){r++;}
	    else{}
	    i++;
	}
	System.out.println(r);
    }
} Main
import java.util.Scanner;

public class Main{
    public static void main(String[] args){
	Scanner stdin = new Scanner(System.in);
	int a = stdin.nextInt();
	int b = stdin.nextInt();
	int c = stdin.nextInt();
	int i = a;
	int r = 0,s = 0;
	while(i<=b){
	    s = c%i;
	    boolean t = (s == 0);
	    if(t){r++;}
	    else{}
	    i++;
	}
	System.out.println(r);
    }
}