import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] string = line.split(" ");
		int[] is = new int[string.length];
		for (int i = 0; i < is.length; i++) {
			is[i] = Integer.parseInt(string[i]);
		}

		int a = is[0];
		int b = is[1];
		int c = is[2];

		List<Integer> list = new ArrayList<Integer>();

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

		System.out.println(list.size());

	}

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] string = line.split(" ");
		int[] is = new int[string.length];
		for (int i = 0; i < is.length; i++) {
			is[i] = Integer.parseInt(string[i]);
		}

		int a = is[0];
		int b = is[1];
		int c = is[2];

		List<Integer> list = new ArrayList<Integer>();

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

		System.out.println(list.size());

	}

} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] string = line.split(" ");
		int[] is = new int[string.length];
		for (int i = 0; i < is.length; i++) {
			is[i] = Integer.parseInt(string[i]);
		}

		int a = is[0];
		int b = is[1];
		int c = is[2];

		List<Integer> list = new ArrayList<Integer>();

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

		System.out.println(list.size());

	} main {

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] string = line.split(" ");
		int[] is = new int[string.length];
		for (int i = 0; i < is.length; i++) {
			is[i] = Integer.parseInt(string[i]);
		}

		int a = is[0];
		int b = is[1];
		int c = is[2];

		List<Integer> list = new ArrayList<Integer>();

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

		System.out.println(list.size());

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc String[] string = line.split(" "); string line.split(" ") line.split line " " int[] is = new int[string.length]; is new int[string.length] string.length string string.length for (int i = 0; i < is.length; i++) {
			is[i] = Integer.parseInt(string[i]);
		} int i = 0; int i = 0; i 0 i < is.length i is.length is is.length i++ i++ i {
			is[i] = Integer.parseInt(string[i]);
		} {
			is[i] = Integer.parseInt(string[i]);
		} is[i] = Integer.parseInt(string[i]) is[i] is i Integer.parseInt(string[i]) Integer.parseInt Integer string[i] string i int a = is[0]; a is[0] is 0 int b = is[1]; b is[1] is 1 int c = is[2]; c is[2] is 2 List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() for (int i = a; i <= b; i++) {
			if (c % i == 0) {
				list.add(i);
			}
		} int i = a; int i = a; i a i <= b i b i++ i++ i {
			if (c % i == 0) {
				list.add(i);
			}
		} {
			if (c % i == 0) {
				list.add(i);
			}
		} if (c % i == 0) {
				list.add(i);
			} c % i == 0 c % i c i 0 {
				list.add(i);
			} list.add(i) list.add list i System.out.println(list.size()) System.out.println System.out System System.out list.size() list.size list String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] string = line.split(" ");
		int[] is = new int[string.length];
		for (int i = 0; i < is.length; i++) {
			is[i] = Integer.parseInt(string[i]);
		}

		int a = is[0];
		int b = is[1];
		int c = is[2];

		List<Integer> list = new ArrayList<Integer>();

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

		System.out.println(list.size());

	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] string = line.split(" ");
		int[] is = new int[string.length];
		for (int i = 0; i < is.length; i++) {
			is[i] = Integer.parseInt(string[i]);
		}

		int a = is[0];
		int b = is[1];
		int c = is[2];

		List<Integer> list = new ArrayList<Integer>();

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

		System.out.println(list.size());

	}

} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] string = line.split(" ");
		int[] is = new int[string.length];
		for (int i = 0; i < is.length; i++) {
			is[i] = Integer.parseInt(string[i]);
		}

		int a = is[0];
		int b = is[1];
		int c = is[2];

		List<Integer> list = new ArrayList<Integer>();

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

		System.out.println(list.size());

	}

}