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 c = sc.nextInt();
		sc.close();
		int count = 0;
		for (; a<=b; a++) {
			if (isDivisor(a, c)) {
				count++;
			}
		}
		System.out.println(count);
	}

	static boolean isDivisor(int a, int c) {
		if (c % a == 0) {
			return true;
		}

		return false;
	}
} 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 c = sc.nextInt();
		sc.close();
		int count = 0;
		for (; a<=b; a++) {
			if (isDivisor(a, c)) {
				count++;
			}
		}
		System.out.println(count);
	}

	static boolean isDivisor(int a, int c) {
		if (c % a == 0) {
			return true;
		}

		return false;
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		sc.close();
		int count = 0;
		for (; a<=b; a++) {
			if (isDivisor(a, c)) {
				count++;
			}
		}
		System.out.println(count);
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		sc.close();
		int count = 0;
		for (; a<=b; a++) {
			if (isDivisor(a, c)) {
				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 c = sc.nextInt(); c sc.nextInt() sc.nextInt sc sc.close() sc.close sc int count = 0; count 0 for (; a<=b; a++) {
			if (isDivisor(a, c)) {
				count++;
			}
		} ; a<=b a b a++ a++ a {
			if (isDivisor(a, c)) {
				count++;
			}
		} {
			if (isDivisor(a, c)) {
				count++;
			}
		} if (isDivisor(a, c)) {
				count++;
			} isDivisor(a, c) isDivisor a c {
				count++;
			} count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args static boolean isDivisor(int a, int c) {
		if (c % a == 0) {
			return true;
		}

		return false;
	} isDivisor {
		if (c % a == 0) {
			return true;
		}

		return false;
	} if (c % a == 0) {
			return true;
		} c % a == 0 c % a c a 0 {
			return true;
		} return true; true return false; false int a a int c c public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		sc.close();
		int count = 0;
		for (; a<=b; a++) {
			if (isDivisor(a, c)) {
				count++;
			}
		}
		System.out.println(count);
	}

	static boolean isDivisor(int a, int c) {
		if (c % a == 0) {
			return true;
		}

		return false;
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		sc.close();
		int count = 0;
		for (; a<=b; a++) {
			if (isDivisor(a, c)) {
				count++;
			}
		}
		System.out.println(count);
	}

	static boolean isDivisor(int a, int c) {
		if (c % a == 0) {
			return true;
		}

		return false;
	}
} Main
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 c = sc.nextInt();
		sc.close();
		int count = 0;
		for (; a<=b; a++) {
			if (isDivisor(a, c)) {
				count++;
			}
		}
		System.out.println(count);
	}

	static boolean isDivisor(int a, int c) {
		if (c % a == 0) {
			return true;
		}

		return false;
	}
}