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

class Main {
	public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try {
			String[] list = br.readLine().split(" ");
			int count = 0;
			int from = Integer.parseInt(list[0]);
			int to = Integer.parseInt(list[1]);
			int num = Integer.parseInt(list[2]);
			for (; from <= to; from++) {
				if (num % from == 0) {
					count++;
				}
			}
			System.out.println(count);

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
	public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try {
			String[] list = br.readLine().split(" ");
			int count = 0;
			int from = Integer.parseInt(list[0]);
			int to = Integer.parseInt(list[1]);
			int num = Integer.parseInt(list[2]);
			for (; from <= to; from++) {
				if (num % from == 0) {
					count++;
				}
			}
			System.out.println(count);

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try {
			String[] list = br.readLine().split(" ");
			int count = 0;
			int from = Integer.parseInt(list[0]);
			int to = Integer.parseInt(list[1]);
			int num = Integer.parseInt(list[2]);
			for (; from <= to; from++) {
				if (num % from == 0) {
					count++;
				}
			}
			System.out.println(count);

		} catch (IOException e) {
			e.printStackTrace();
		}
	} main {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try {
			String[] list = br.readLine().split(" ");
			int count = 0;
			int from = Integer.parseInt(list[0]);
			int to = Integer.parseInt(list[1]);
			int num = Integer.parseInt(list[2]);
			for (; from <= to; from++) {
				if (num % from == 0) {
					count++;
				}
			}
			System.out.println(count);

		} catch (IOException e) {
			e.printStackTrace();
		}
	} InputStreamReader isr = new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br = new BufferedReader(isr); br new BufferedReader(isr) try {
			String[] list = br.readLine().split(" ");
			int count = 0;
			int from = Integer.parseInt(list[0]);
			int to = Integer.parseInt(list[1]);
			int num = Integer.parseInt(list[2]);
			for (; from <= to; from++) {
				if (num % from == 0) {
					count++;
				}
			}
			System.out.println(count);

		} catch (IOException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			String[] list = br.readLine().split(" ");
			int count = 0;
			int from = Integer.parseInt(list[0]);
			int to = Integer.parseInt(list[1]);
			int num = Integer.parseInt(list[2]);
			for (; from <= to; from++) {
				if (num % from == 0) {
					count++;
				}
			}
			System.out.println(count);

		} String[] list = br.readLine().split(" "); list br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int count = 0; count 0 int from = Integer.parseInt(list[0]); from Integer.parseInt(list[0]) Integer.parseInt Integer list[0] list 0 int to = Integer.parseInt(list[1]); to Integer.parseInt(list[1]) Integer.parseInt Integer list[1] list 1 int num = Integer.parseInt(list[2]); num Integer.parseInt(list[2]) Integer.parseInt Integer list[2] list 2 for (; from <= to; from++) {
				if (num % from == 0) {
					count++;
				}
			} ; from <= to from to from++ from++ from {
				if (num % from == 0) {
					count++;
				}
			} {
				if (num % from == 0) {
					count++;
				}
			} if (num % from == 0) {
					count++;
				} num % from == 0 num % from num from 0 {
					count++;
				} count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {
	public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try {
			String[] list = br.readLine().split(" ");
			int count = 0;
			int from = Integer.parseInt(list[0]);
			int to = Integer.parseInt(list[1]);
			int num = Integer.parseInt(list[2]);
			for (; from <= to; from++) {
				if (num % from == 0) {
					count++;
				}
			}
			System.out.println(count);

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}