import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		while (sc.hasNext()) {
			String[] s = sc.nextLine().split(" ");
			int a = Integer.parseInt(s[0]);
			int b = Integer.parseInt(s[1]);
			int c = Integer.parseInt(s[2]);
			int counter = 0;
			for (int i = a; i <= b; i++) {
				if (c % i == 0) {
					counter++;
				}
			}
			System.out.println(counter);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		while (sc.hasNext()) {
			String[] s = sc.nextLine().split(" ");
			int a = Integer.parseInt(s[0]);
			int b = Integer.parseInt(s[1]);
			int c = Integer.parseInt(s[2]);
			int counter = 0;
			for (int i = a; i <= b; i++) {
				if (c % i == 0) {
					counter++;
				}
			}
			System.out.println(counter);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		while (sc.hasNext()) {
			String[] s = sc.nextLine().split(" ");
			int a = Integer.parseInt(s[0]);
			int b = Integer.parseInt(s[1]);
			int c = Integer.parseInt(s[2]);
			int counter = 0;
			for (int i = a; i <= b; i++) {
				if (c % i == 0) {
					counter++;
				}
			}
			System.out.println(counter);
		}
	} main {
		Scanner sc = new Scanner(System.in);

		while (sc.hasNext()) {
			String[] s = sc.nextLine().split(" ");
			int a = Integer.parseInt(s[0]);
			int b = Integer.parseInt(s[1]);
			int c = Integer.parseInt(s[2]);
			int counter = 0;
			for (int i = a; i <= b; i++) {
				if (c % i == 0) {
					counter++;
				}
			}
			System.out.println(counter);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while (sc.hasNext()) {
			String[] s = sc.nextLine().split(" ");
			int a = Integer.parseInt(s[0]);
			int b = Integer.parseInt(s[1]);
			int c = Integer.parseInt(s[2]);
			int counter = 0;
			for (int i = a; i <= b; i++) {
				if (c % i == 0) {
					counter++;
				}
			}
			System.out.println(counter);
		} sc.hasNext() sc.hasNext sc {
			String[] s = sc.nextLine().split(" ");
			int a = Integer.parseInt(s[0]);
			int b = Integer.parseInt(s[1]);
			int c = Integer.parseInt(s[2]);
			int counter = 0;
			for (int i = a; i <= b; i++) {
				if (c % i == 0) {
					counter++;
				}
			}
			System.out.println(counter);
		} String[] s = sc.nextLine().split(" "); s sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int a = Integer.parseInt(s[0]); a Integer.parseInt(s[0]) Integer.parseInt Integer s[0] s 0 int b = Integer.parseInt(s[1]); b Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 int c = Integer.parseInt(s[2]); c Integer.parseInt(s[2]) Integer.parseInt Integer s[2] s 2 int counter = 0; counter 0 for (int i = a; i <= b; i++) {
				if (c % i == 0) {
					counter++;
				}
			} int i = a; int i = a; i a i <= b i b i++ i++ i {
				if (c % i == 0) {
					counter++;
				}
			} {
				if (c % i == 0) {
					counter++;
				}
			} if (c % i == 0) {
					counter++;
				} c % i == 0 c % i c i 0 {
					counter++;
				} counter++ counter System.out.println(counter) System.out.println System.out System System.out counter String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		while (sc.hasNext()) {
			String[] s = sc.nextLine().split(" ");
			int a = Integer.parseInt(s[0]);
			int b = Integer.parseInt(s[1]);
			int c = Integer.parseInt(s[2]);
			int counter = 0;
			for (int i = a; i <= b; i++) {
				if (c % i == 0) {
					counter++;
				}
			}
			System.out.println(counter);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		while (sc.hasNext()) {
			String[] s = sc.nextLine().split(" ");
			int a = Integer.parseInt(s[0]);
			int b = Integer.parseInt(s[1]);
			int c = Integer.parseInt(s[2]);
			int counter = 0;
			for (int i = a; i <= b; i++) {
				if (c % i == 0) {
					counter++;
				}
			}
			System.out.println(counter);
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		while (sc.hasNext()) {
			String[] s = sc.nextLine().split(" ");
			int a = Integer.parseInt(s[0]);
			int b = Integer.parseInt(s[1]);
			int c = Integer.parseInt(s[2]);
			int counter = 0;
			for (int i = a; i <= b; i++) {
				if (c % i == 0) {
					counter++;
				}
			}
			System.out.println(counter);
		}
	}
}