import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		int a = 0;
		int b = 0;
		int c = 0;
		int answer = 0;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] result = str.split(" ");

		a = Integer.parseInt(result[0]);
		b = Integer.parseInt(result[1]);
		c = Integer.parseInt(result[2]);

		for (int i = a; i <= b; i += 1) {
			if (c % i == 0) {
				answer++;
			}
		}
		System.out.println(answer);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws IOException {
		int a = 0;
		int b = 0;
		int c = 0;
		int answer = 0;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] result = str.split(" ");

		a = Integer.parseInt(result[0]);
		b = Integer.parseInt(result[1]);
		c = Integer.parseInt(result[2]);

		for (int i = a; i <= b; i += 1) {
			if (c % i == 0) {
				answer++;
			}
		}
		System.out.println(answer);
	}
} Main public static void main(String[] args) throws IOException {
		int a = 0;
		int b = 0;
		int c = 0;
		int answer = 0;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] result = str.split(" ");

		a = Integer.parseInt(result[0]);
		b = Integer.parseInt(result[1]);
		c = Integer.parseInt(result[2]);

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] result = str.split(" ");

		a = Integer.parseInt(result[0]);
		b = Integer.parseInt(result[1]);
		c = Integer.parseInt(result[2]);

		for (int i = a; i <= b; i += 1) {
			if (c % i == 0) {
				answer++;
			}
		}
		System.out.println(answer);
	} int a = 0; a 0 int b = 0; b 0 int c = 0; c 0 int answer = 0; answer 0 BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br String[] result = str.split(" "); result str.split(" ") str.split str " " a = Integer.parseInt(result[0]) a Integer.parseInt(result[0]) Integer.parseInt Integer result[0] result 0 b = Integer.parseInt(result[1]) b Integer.parseInt(result[1]) Integer.parseInt Integer result[1] result 1 c = Integer.parseInt(result[2]) c Integer.parseInt(result[2]) Integer.parseInt Integer result[2] result 2 for (int i = a; i <= b; i += 1) {
			if (c % i == 0) {
				answer++;
			}
		} int i = a; int i = a; i a i <= b i b i += 1 i += 1 i 1 {
			if (c % i == 0) {
				answer++;
			}
		} {
			if (c % i == 0) {
				answer++;
			}
		} if (c % i == 0) {
				answer++;
			} c % i == 0 c % i c i 0 {
				answer++;
			} answer++ answer System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		int a = 0;
		int b = 0;
		int c = 0;
		int answer = 0;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] result = str.split(" ");

		a = Integer.parseInt(result[0]);
		b = Integer.parseInt(result[1]);
		c = Integer.parseInt(result[2]);

		for (int i = a; i <= b; i += 1) {
			if (c % i == 0) {
				answer++;
			}
		}
		System.out.println(answer);
	}
} public class Main {

	public static void main(String[] args) throws IOException {
		int a = 0;
		int b = 0;
		int c = 0;
		int answer = 0;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] result = str.split(" ");

		a = Integer.parseInt(result[0]);
		b = Integer.parseInt(result[1]);
		c = Integer.parseInt(result[2]);

		for (int i = a; i <= b; i += 1) {
			if (c % i == 0) {
				answer++;
			}
		}
		System.out.println(answer);
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		int a = 0;
		int b = 0;
		int c = 0;
		int answer = 0;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] result = str.split(" ");

		a = Integer.parseInt(result[0]);
		b = Integer.parseInt(result[1]);
		c = Integer.parseInt(result[2]);

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