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 n = 0;
		
		while(a < 1 || a > 10000 || b < 1 || b> 10000 || c < 1 || c > 10000) {
			a = stdIn.nextInt();
			b = stdIn.nextInt();
			c = stdIn.nextInt();
		}
		
		for(int i = a; i <= b; i++) {
			if(c % i == 0) {
				n++;
			}
		}
		
		System.out.println(n);
	}
} 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 n = 0;
		
		while(a < 1 || a > 10000 || b < 1 || b> 10000 || c < 1 || c > 10000) {
			a = stdIn.nextInt();
			b = stdIn.nextInt();
			c = stdIn.nextInt();
		}
		
		for(int i = a; i <= b; i++) {
			if(c % i == 0) {
				n++;
			}
		}
		
		System.out.println(n);
	}
} 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 n = 0;
		
		while(a < 1 || a > 10000 || b < 1 || b> 10000 || c < 1 || c > 10000) {
			a = stdIn.nextInt();
			b = stdIn.nextInt();
			c = stdIn.nextInt();
		}
		
		for(int i = a; i <= b; i++) {
			if(c % i == 0) {
				n++;
			}
		}
		
		System.out.println(n);
	} main {
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		int c = stdIn.nextInt();
		int n = 0;
		
		while(a < 1 || a > 10000 || b < 1 || b> 10000 || c < 1 || c > 10000) {
			a = stdIn.nextInt();
			b = stdIn.nextInt();
			c = stdIn.nextInt();
		}
		
		for(int i = a; i <= b; i++) {
			if(c % i == 0) {
				n++;
			}
		}
		
		System.out.println(n);
	} 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 n = 0; n 0 while(a < 1 || a > 10000 || b < 1 || b> 10000 || c < 1 || c > 10000) {
			a = stdIn.nextInt();
			b = stdIn.nextInt();
			c = stdIn.nextInt();
		} a < 1 || a > 10000 || b < 1 || b> 10000 || c < 1 || c > 10000 c < 1 b> 10000 b < 1 a < 1 || a > 10000 || b < 1 || b> 10000 || c < 1 || c > 10000 a < 1 a 1 a > 10000 a 10000 b < 1 b 1 b> 10000 b 10000 c < 1 c 1 c > 10000 c 10000 {
			a = stdIn.nextInt();
			b = stdIn.nextInt();
			c = stdIn.nextInt();
		} a = stdIn.nextInt() a stdIn.nextInt() stdIn.nextInt stdIn b = stdIn.nextInt() b stdIn.nextInt() stdIn.nextInt stdIn c = stdIn.nextInt() c stdIn.nextInt() stdIn.nextInt stdIn for(int i = a; i <= b; i++) {
			if(c % i == 0) {
				n++;
			}
		} int i = a; int i = a; i a i <= b i b i++ i++ i {
			if(c % i == 0) {
				n++;
			}
		} {
			if(c % i == 0) {
				n++;
			}
		} if(c % i == 0) {
				n++;
			} c % i == 0 c % i c i 0 {
				n++;
			} n++ n System.out.println(n) System.out.println System.out System System.out n 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 n = 0;
		
		while(a < 1 || a > 10000 || b < 1 || b> 10000 || c < 1 || c > 10000) {
			a = stdIn.nextInt();
			b = stdIn.nextInt();
			c = stdIn.nextInt();
		}
		
		for(int i = a; i <= b; i++) {
			if(c % i == 0) {
				n++;
			}
		}
		
		System.out.println(n);
	}
} 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 n = 0;
		
		while(a < 1 || a > 10000 || b < 1 || b> 10000 || c < 1 || c > 10000) {
			a = stdIn.nextInt();
			b = stdIn.nextInt();
			c = stdIn.nextInt();
		}
		
		for(int i = a; i <= b; i++) {
			if(c % i == 0) {
				n++;
			}
		}
		
		System.out.println(n);
	}
} 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 n = 0;
		
		while(a < 1 || a > 10000 || b < 1 || b> 10000 || c < 1 || c > 10000) {
			a = stdIn.nextInt();
			b = stdIn.nextInt();
			c = stdIn.nextInt();
		}
		
		for(int i = a; i <= b; i++) {
			if(c % i == 0) {
				n++;
			}
		}
		
		System.out.println(n);
	}
}
