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

public class Main {
	public static void main(String[] args) {
		try {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			String[] line = in.readLine().split(" ");
			int a = Integer.parseInt(line[0]);
			int b = Integer.parseInt(line[1]);
			int c = Integer.parseInt(line[2]);
			
			int count = 0;
			for (int i = a; i <= b; i++) {
				if (c % i == 0) {
					count++;
				}
			}
			System.out.println(String.valueOf(count));
		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}
	}
} 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) {
		try {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			String[] line = in.readLine().split(" ");
			int a = Integer.parseInt(line[0]);
			int b = Integer.parseInt(line[1]);
			int c = Integer.parseInt(line[2]);
			
			int count = 0;
			for (int i = a; i <= b; i++) {
				if (c % i == 0) {
					count++;
				}
			}
			System.out.println(String.valueOf(count));
		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		try {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			String[] line = in.readLine().split(" ");
			int a = Integer.parseInt(line[0]);
			int b = Integer.parseInt(line[1]);
			int c = Integer.parseInt(line[2]);
			
			int count = 0;
			for (int i = a; i <= b; i++) {
				if (c % i == 0) {
					count++;
				}
			}
			System.out.println(String.valueOf(count));
		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}
	} main {
		try {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			String[] line = in.readLine().split(" ");
			int a = Integer.parseInt(line[0]);
			int b = Integer.parseInt(line[1]);
			int c = Integer.parseInt(line[2]);
			
			int count = 0;
			for (int i = a; i <= b; i++) {
				if (c % i == 0) {
					count++;
				}
			}
			System.out.println(String.valueOf(count));
		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}
	} try {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			String[] line = in.readLine().split(" ");
			int a = Integer.parseInt(line[0]);
			int b = Integer.parseInt(line[1]);
			int c = Integer.parseInt(line[2]);
			
			int count = 0;
			for (int i = a; i <= b; i++) {
				if (c % i == 0) {
					count++;
				}
			}
			System.out.println(String.valueOf(count));
		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		} IOException e {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			String[] line = in.readLine().split(" ");
			int a = Integer.parseInt(line[0]);
			int b = Integer.parseInt(line[1]);
			int c = Integer.parseInt(line[2]);
			
			int count = 0;
			for (int i = a; i <= b; i++) {
				if (c % i == 0) {
					count++;
				}
			}
			System.out.println(String.valueOf(count));
		} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String[] line = in.readLine().split(" "); line in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " int a = Integer.parseInt(line[0]); a Integer.parseInt(line[0]) Integer.parseInt Integer line[0] line 0 int b = Integer.parseInt(line[1]); b Integer.parseInt(line[1]) Integer.parseInt Integer line[1] line 1 int c = Integer.parseInt(line[2]); c Integer.parseInt(line[2]) Integer.parseInt Integer line[2] line 2 int count = 0; count 0 for (int i = a; i <= b; i++) {
				if (c % i == 0) {
					count++;
				}
			} int i = a; int i = a; i a i <= b i b i++ i++ i {
				if (c % i == 0) {
					count++;
				}
			} {
				if (c % i == 0) {
					count++;
				}
			} if (c % i == 0) {
					count++;
				} c % i == 0 c % i c i 0 {
					count++;
				} count++ count System.out.println(String.valueOf(count)) System.out.println System.out System System.out String.valueOf(count) String.valueOf String count String[] args args public class Main {
	public static void main(String[] args) {
		try {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			String[] line = in.readLine().split(" ");
			int a = Integer.parseInt(line[0]);
			int b = Integer.parseInt(line[1]);
			int c = Integer.parseInt(line[2]);
			
			int count = 0;
			for (int i = a; i <= b; i++) {
				if (c % i == 0) {
					count++;
				}
			}
			System.out.println(String.valueOf(count));
		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}
	}
} public class Main {
	public static void main(String[] args) {
		try {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			String[] line = in.readLine().split(" ");
			int a = Integer.parseInt(line[0]);
			int b = Integer.parseInt(line[1]);
			int c = Integer.parseInt(line[2]);
			
			int count = 0;
			for (int i = a; i <= b; i++) {
				if (c % i == 0) {
					count++;
				}
			}
			System.out.println(String.valueOf(count));
		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) {
		try {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			String[] line = in.readLine().split(" ");
			int a = Integer.parseInt(line[0]);
			int b = Integer.parseInt(line[1]);
			int c = Integer.parseInt(line[2]);
			
			int count = 0;
			for (int i = a; i <= b; i++) {
				if (c % i == 0) {
					count++;
				}
			}
			System.out.println(String.valueOf(count));
		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}
	}
}