import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();
		String[] strs = str.split(" ");

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

		int div = 0;

		for (int i = a; i <= b; i++) {
			if (c % i == 0) {
				div++;
			}
		}

		System.out.println(div);
		sc.close();

	}

}
 import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();
		String[] strs = str.split(" ");

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

		int div = 0;

		for (int i = a; i <= b; i++) {
			if (c % i == 0) {
				div++;
			}
		}

		System.out.println(div);
		sc.close();

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();
		String[] strs = str.split(" ");

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

		int div = 0;

		for (int i = a; i <= b; i++) {
			if (c % i == 0) {
				div++;
			}
		}

		System.out.println(div);
		sc.close();

	} main {
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();
		String[] strs = str.split(" ");

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

		int div = 0;

		for (int i = a; i <= b; i++) {
			if (c % i == 0) {
				div++;
			}
		}

		System.out.println(div);
		sc.close();

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.nextLine(); str sc.nextLine() sc.nextLine sc String[] strs = str.split(" "); strs str.split(" ") str.split str " " int a = Integer.parseInt(strs[0]); a Integer.parseInt(strs[0]) Integer.parseInt Integer strs[0] strs 0 int b = Integer.parseInt(strs[1]); b Integer.parseInt(strs[1]) Integer.parseInt Integer strs[1] strs 1 int c = Integer.parseInt(strs[2]); c Integer.parseInt(strs[2]) Integer.parseInt Integer strs[2] strs 2 int div = 0; div 0 for (int i = a; i <= b; i++) {
			if (c % i == 0) {
				div++;
			}
		} int i = a; int i = a; i a i <= b i b i++ i++ i {
			if (c % i == 0) {
				div++;
			}
		} {
			if (c % i == 0) {
				div++;
			}
		} if (c % i == 0) {
				div++;
			} c % i == 0 c % i c i 0 {
				div++;
			} div++ div System.out.println(div) System.out.println System.out System System.out div sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();
		String[] strs = str.split(" ");

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

		int div = 0;

		for (int i = a; i <= b; i++) {
			if (c % i == 0) {
				div++;
			}
		}

		System.out.println(div);
		sc.close();

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();
		String[] strs = str.split(" ");

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

		int div = 0;

		for (int i = a; i <= b; i++) {
			if (c % i == 0) {
				div++;
			}
		}

		System.out.println(div);
		sc.close();

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();
		String[] strs = str.split(" ");

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

		int div = 0;

		for (int i = a; i <= b; i++) {
			if (c % i == 0) {
				div++;
			}
		}

		System.out.println(div);
		sc.close();

	}

}

