import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a,b,c;
		int divisor = 0;

		a = scan.nextInt();
		b = scan.nextInt();
		c = scan.nextInt();

		for (int i = a; i <= b; i++)
			if (i != 0 && c % i == 0)divisor++;
		
		System.out.printf("%d\n", divisor);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a,b,c;
		int divisor = 0;

		a = scan.nextInt();
		b = scan.nextInt();
		c = scan.nextInt();

		for (int i = a; i <= b; i++)
			if (i != 0 && c % i == 0)divisor++;
		
		System.out.printf("%d\n", divisor);
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a,b,c;
		int divisor = 0;

		a = scan.nextInt();
		b = scan.nextInt();
		c = scan.nextInt();

		for (int i = a; i <= b; i++)
			if (i != 0 && c % i == 0)divisor++;
		
		System.out.printf("%d\n", divisor);
	} main {
		Scanner scan = new Scanner(System.in);
		int a,b,c;
		int divisor = 0;

		a = scan.nextInt();
		b = scan.nextInt();
		c = scan.nextInt();

		for (int i = a; i <= b; i++)
			if (i != 0 && c % i == 0)divisor++;
		
		System.out.printf("%d\n", divisor);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a a b b c; c int divisor = 0; divisor 0 a = scan.nextInt() a scan.nextInt() scan.nextInt scan b = scan.nextInt() b scan.nextInt() scan.nextInt scan c = scan.nextInt() c scan.nextInt() scan.nextInt scan for (int i = a; i <= b; i++)
			if (i != 0 && c % i == 0)divisor++; int i = a; int i = a; i a i <= b i b i++ i++ i if (i != 0 && c % i == 0)divisor++; if (i != 0 && c % i == 0)divisor++; i != 0 && c % i == 0 i != 0 i 0 c % i == 0 c % i c i 0 divisor++ divisor System.out.printf("%d\n", divisor) System.out.printf System.out System System.out "%d\n" divisor String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a,b,c;
		int divisor = 0;

		a = scan.nextInt();
		b = scan.nextInt();
		c = scan.nextInt();

		for (int i = a; i <= b; i++)
			if (i != 0 && c % i == 0)divisor++;
		
		System.out.printf("%d\n", divisor);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a,b,c;
		int divisor = 0;

		a = scan.nextInt();
		b = scan.nextInt();
		c = scan.nextInt();

		for (int i = a; i <= b; i++)
			if (i != 0 && c % i == 0)divisor++;
		
		System.out.printf("%d\n", divisor);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a,b,c;
		int divisor = 0;

		a = scan.nextInt();
		b = scan.nextInt();
		c = scan.nextInt();

		for (int i = a; i <= b; i++)
			if (i != 0 && c % i == 0)divisor++;
		
		System.out.printf("%d\n", divisor);
	}
}