public class Main {
	public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		//StringBuilder sb = new StringBuilder();
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

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

		int i = 0;
		for (int j =0;a + j <= b;j++){
			if (c % (a + j) == 0) { i++; }
		}
		System.out.println(i);
	}
} Main public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		//StringBuilder sb = new StringBuilder();
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		int i = 0;
		for (int j =0;a + j <= b;j++){
			if (c % (a + j) == 0) { i++; }
		}
		System.out.println(i);
	} main {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		//StringBuilder sb = new StringBuilder();
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		int i = 0;
		for (int j =0;a + j <= b;j++){
			if (c % (a + j) == 0) { i++; }
		}
		System.out.println(i);
	} java.util.Scanner sc = new java.util.Scanner(System.in); sc new java.util.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 i = 0; i 0 for (int j =0;a + j <= b;j++){
			if (c % (a + j) == 0) { i++; }
		} int j =0; int j =0; j 0 a + j <= b a + j a j b j++ j++ j {
			if (c % (a + j) == 0) { i++; }
		} {
			if (c % (a + j) == 0) { i++; }
		} if (c % (a + j) == 0) { i++; } c % (a + j) == 0 c % (a + j) c (a + j) a j 0 { i++; } i++ i System.out.println(i) System.out.println System.out System System.out i String[] args args public class Main {
	public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		//StringBuilder sb = new StringBuilder();
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

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

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

		int i = 0;
		for (int j =0;a + j <= b;j++){
			if (c % (a + j) == 0) { i++; }
		}
		System.out.println(i);
	}
}