import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		
		Scanner n=new Scanner(System.in);
		
		int start = n.nextInt();
		int end = n.nextInt();
		int num = n.nextInt();
		int cnt = 0;
		
		for (int a = start;a<=end;a++){
			
			if ((num % a) == 0){
				cnt=cnt+1;
			}
		}
		System.out.println(cnt);
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		
		Scanner n=new Scanner(System.in);
		
		int start = n.nextInt();
		int end = n.nextInt();
		int num = n.nextInt();
		int cnt = 0;
		
		for (int a = start;a<=end;a++){
			
			if ((num % a) == 0){
				cnt=cnt+1;
			}
		}
		System.out.println(cnt);
	}

} Main public static void main(String[] args) {
		
		Scanner n=new Scanner(System.in);
		
		int start = n.nextInt();
		int end = n.nextInt();
		int num = n.nextInt();
		int cnt = 0;
		
		for (int a = start;a<=end;a++){
			
			if ((num % a) == 0){
				cnt=cnt+1;
			}
		}
		System.out.println(cnt);
	} main {
		
		Scanner n=new Scanner(System.in);
		
		int start = n.nextInt();
		int end = n.nextInt();
		int num = n.nextInt();
		int cnt = 0;
		
		for (int a = start;a<=end;a++){
			
			if ((num % a) == 0){
				cnt=cnt+1;
			}
		}
		System.out.println(cnt);
	} Scanner n=new Scanner(System.in); n new Scanner(System.in) int start = n.nextInt(); start n.nextInt() n.nextInt n int end = n.nextInt(); end n.nextInt() n.nextInt n int num = n.nextInt(); num n.nextInt() n.nextInt n int cnt = 0; cnt 0 for (int a = start;a<=end;a++){
			
			if ((num % a) == 0){
				cnt=cnt+1;
			}
		} int a = start; int a = start; a start a<=end a end a++ a++ a {
			
			if ((num % a) == 0){
				cnt=cnt+1;
			}
		} {
			
			if ((num % a) == 0){
				cnt=cnt+1;
			}
		} if ((num % a) == 0){
				cnt=cnt+1;
			} (num % a) == 0 (num % a) num a 0 {
				cnt=cnt+1;
			} cnt=cnt+1 cnt cnt+1 cnt 1 System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {

	public static void main(String[] args) {
		
		Scanner n=new Scanner(System.in);
		
		int start = n.nextInt();
		int end = n.nextInt();
		int num = n.nextInt();
		int cnt = 0;
		
		for (int a = start;a<=end;a++){
			
			if ((num % a) == 0){
				cnt=cnt+1;
			}
		}
		System.out.println(cnt);
	}

} public class Main {

	public static void main(String[] args) {
		
		Scanner n=new Scanner(System.in);
		
		int start = n.nextInt();
		int end = n.nextInt();
		int num = n.nextInt();
		int cnt = 0;
		
		for (int a = start;a<=end;a++){
			
			if ((num % a) == 0){
				cnt=cnt+1;
			}
		}
		System.out.println(cnt);
	}

} Main
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		
		Scanner n=new Scanner(System.in);
		
		int start = n.nextInt();
		int end = n.nextInt();
		int num = n.nextInt();
		int cnt = 0;
		
		for (int a = start;a<=end;a++){
			
			if ((num % a) == 0){
				cnt=cnt+1;
			}
		}
		System.out.println(cnt);
	}

}