import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int divisor = 0;
		for(int i = 0 ; i <= (b-a) ; i++) {
			if(c%(a+i) == 0) {
				 divisor += 1; 
			}
		}
		System.out.println(divisor);
		 
		sc.close();
	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int divisor = 0;
		for(int i = 0 ; i <= (b-a) ; i++) {
			if(c%(a+i) == 0) {
				 divisor += 1; 
			}
		}
		System.out.println(divisor);
		 
		sc.close();
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int divisor = 0;
		for(int i = 0 ; i <= (b-a) ; i++) {
			if(c%(a+i) == 0) {
				 divisor += 1; 
			}
		}
		System.out.println(divisor);
		 
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int divisor = 0;
		for(int i = 0 ; i <= (b-a) ; i++) {
			if(c%(a+i) == 0) {
				 divisor += 1; 
			}
		}
		System.out.println(divisor);
		 
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int divisor = 0; divisor 0 for(int i = 0 ; i <= (b-a) ; i++) {
			if(c%(a+i) == 0) {
				 divisor += 1; 
			}
		} int i = 0 ; int i = 0 ; i 0 i <= (b-a) i (b-a) b a i++ i++ i {
			if(c%(a+i) == 0) {
				 divisor += 1; 
			}
		} {
			if(c%(a+i) == 0) {
				 divisor += 1; 
			}
		} if(c%(a+i) == 0) {
				 divisor += 1; 
			} c%(a+i) == 0 c%(a+i) c (a+i) a i 0 {
				 divisor += 1; 
			} divisor += 1 divisor 1 System.out.println(divisor) System.out.println System.out System System.out divisor sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int divisor = 0;
		for(int i = 0 ; i <= (b-a) ; i++) {
			if(c%(a+i) == 0) {
				 divisor += 1; 
			}
		}
		System.out.println(divisor);
		 
		sc.close();
	}

} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int divisor = 0;
		for(int i = 0 ; i <= (b-a) ; i++) {
			if(c%(a+i) == 0) {
				 divisor += 1; 
			}
		}
		System.out.println(divisor);
		 
		sc.close();
	}

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int divisor = 0;
		for(int i = 0 ; i <= (b-a) ; i++) {
			if(c%(a+i) == 0) {
				 divisor += 1; 
			}
		}
		System.out.println(divisor);
		 
		sc.close();
	}

}