import java.util.ArrayList;
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 x = sc.nextInt();

		int i = 1;
		int c = x;
		ArrayList<Integer> yakusu = new ArrayList<Integer>();
		while(c >= i) {

//			System.out.println("pass");
			if(x % i == 0) {

				c = x / i;

				if(c < i) break;

				if(i == c) yakusu.add(c);
				else {
					yakusu.add(i);
					yakusu.add(c);
				}
			}
			i++;

		}

		int count = 0;
		for(int j = 0; j < yakusu.size(); j++) {
			if(yakusu.get(j) >= a && yakusu.get(j) <= b) {
				count++;
			}
		}

		System.out.println(count);

	}

}
 import java.util.ArrayList; ArrayList java.util 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 x = sc.nextInt();

		int i = 1;
		int c = x;
		ArrayList<Integer> yakusu = new ArrayList<Integer>();
		while(c >= i) {

//			System.out.println("pass");
			if(x % i == 0) {

				c = x / i;

				if(c < i) break;

				if(i == c) yakusu.add(c);
				else {
					yakusu.add(i);
					yakusu.add(c);
				}
			}
			i++;

		}

		int count = 0;
		for(int j = 0; j < yakusu.size(); j++) {
			if(yakusu.get(j) >= a && yakusu.get(j) <= b) {
				count++;
			}
		}

		System.out.println(count);

	}

} Main public static void main (String[] args) {

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int x = sc.nextInt();

		int i = 1;
		int c = x;
		ArrayList<Integer> yakusu = new ArrayList<Integer>();
		while(c >= i) {

//			System.out.println("pass");
			if(x % i == 0) {

				c = x / i;

				if(c < i) break;

				if(i == c) yakusu.add(c);
				else {
					yakusu.add(i);
					yakusu.add(c);
				}
			}
			i++;

		}

		int count = 0;
		for(int j = 0; j < yakusu.size(); j++) {
			if(yakusu.get(j) >= a && yakusu.get(j) <= b) {
				count++;
			}
		}

		System.out.println(count);

	} main {

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int x = sc.nextInt();

		int i = 1;
		int c = x;
		ArrayList<Integer> yakusu = new ArrayList<Integer>();
		while(c >= i) {

//			System.out.println("pass");
			if(x % i == 0) {

				c = x / i;

				if(c < i) break;

				if(i == c) yakusu.add(c);
				else {
					yakusu.add(i);
					yakusu.add(c);
				}
			}
			i++;

		}

		int count = 0;
		for(int j = 0; j < yakusu.size(); j++) {
			if(yakusu.get(j) >= a && yakusu.get(j) <= b) {
				count++;
			}
		}

		System.out.println(count);

	} 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 x = sc.nextInt(); x sc.nextInt() sc.nextInt sc int i = 1; i 1 int c = x; c x ArrayList<Integer> yakusu = new ArrayList<Integer>(); yakusu new ArrayList<Integer>() while(c >= i) {

//			System.out.println("pass");
			if(x % i == 0) {

				c = x / i;

				if(c < i) break;

				if(i == c) yakusu.add(c);
				else {
					yakusu.add(i);
					yakusu.add(c);
				}
			}
			i++;

		} c >= i c i {

//			System.out.println("pass");
			if(x % i == 0) {

				c = x / i;

				if(c < i) break;

				if(i == c) yakusu.add(c);
				else {
					yakusu.add(i);
					yakusu.add(c);
				}
			}
			i++;

		} if(x % i == 0) {

				c = x / i;

				if(c < i) break;

				if(i == c) yakusu.add(c);
				else {
					yakusu.add(i);
					yakusu.add(c);
				}
			} x % i == 0 x % i x i 0 {

				c = x / i;

				if(c < i) break;

				if(i == c) yakusu.add(c);
				else {
					yakusu.add(i);
					yakusu.add(c);
				}
			} c = x / i c x / i x i if(c < i) break; c < i c i break; if(i == c) yakusu.add(c);
				else {
					yakusu.add(i);
					yakusu.add(c);
				} i == c i c yakusu.add(c) yakusu.add yakusu c {
					yakusu.add(i);
					yakusu.add(c);
				} yakusu.add(i) yakusu.add yakusu i yakusu.add(c) yakusu.add yakusu c i++ i int count = 0; count 0 for(int j = 0; j < yakusu.size(); j++) {
			if(yakusu.get(j) >= a && yakusu.get(j) <= b) {
				count++;
			}
		} int j = 0; int j = 0; j 0 j < yakusu.size() j yakusu.size() yakusu.size yakusu j++ j++ j {
			if(yakusu.get(j) >= a && yakusu.get(j) <= b) {
				count++;
			}
		} {
			if(yakusu.get(j) >= a && yakusu.get(j) <= b) {
				count++;
			}
		} if(yakusu.get(j) >= a && yakusu.get(j) <= b) {
				count++;
			} yakusu.get(j) >= a && yakusu.get(j) <= b yakusu.get(j) >= a yakusu.get(j) yakusu.get yakusu j a yakusu.get(j) <= b yakusu.get(j) yakusu.get yakusu j b {
				count++;
			} count++ count System.out.println(count) System.out.println System.out System System.out count 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 x = sc.nextInt();

		int i = 1;
		int c = x;
		ArrayList<Integer> yakusu = new ArrayList<Integer>();
		while(c >= i) {

//			System.out.println("pass");
			if(x % i == 0) {

				c = x / i;

				if(c < i) break;

				if(i == c) yakusu.add(c);
				else {
					yakusu.add(i);
					yakusu.add(c);
				}
			}
			i++;

		}

		int count = 0;
		for(int j = 0; j < yakusu.size(); j++) {
			if(yakusu.get(j) >= a && yakusu.get(j) <= b) {
				count++;
			}
		}

		System.out.println(count);

	}

} public class Main {

	public static void main (String[] args) {

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int x = sc.nextInt();

		int i = 1;
		int c = x;
		ArrayList<Integer> yakusu = new ArrayList<Integer>();
		while(c >= i) {

//			System.out.println("pass");
			if(x % i == 0) {

				c = x / i;

				if(c < i) break;

				if(i == c) yakusu.add(c);
				else {
					yakusu.add(i);
					yakusu.add(c);
				}
			}
			i++;

		}

		int count = 0;
		for(int j = 0; j < yakusu.size(); j++) {
			if(yakusu.get(j) >= a && yakusu.get(j) <= b) {
				count++;
			}
		}

		System.out.println(count);

	}

} Main
import java.util.ArrayList;
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 x = sc.nextInt();

		int i = 1;
		int c = x;
		ArrayList<Integer> yakusu = new ArrayList<Integer>();
		while(c >= i) {

//			System.out.println("pass");
			if(x % i == 0) {

				c = x / i;

				if(c < i) break;

				if(i == c) yakusu.add(c);
				else {
					yakusu.add(i);
					yakusu.add(c);
				}
			}
			i++;

		}

		int count = 0;
		for(int j = 0; j < yakusu.size(); j++) {
			if(yakusu.get(j) >= a && yakusu.get(j) <= b) {
				count++;
			}
		}

		System.out.println(count);

	}

}

