import java.io.*;
public class Main {
	
	public static void main(String[] args) throws IOException {
		int a, b, c, sum = 0;

		String[] str = new BufferedReader(new InputStreamReader(System.in)).readLine().split("\\s+");
		
		a = Integer.parseInt(str[0]);
		b = Integer.parseInt(str[1]);
		c = Integer.parseInt(str[2]);
				
		for (int i = a; i <= b; i++) sum += c %i == 0 ? 1 : 0;
				
		System.out.println(sum);
	}
} import java.io.*; io.* java public class Main {
	
	public static void main(String[] args) throws IOException {
		int a, b, c, sum = 0;

		String[] str = new BufferedReader(new InputStreamReader(System.in)).readLine().split("\\s+");
		
		a = Integer.parseInt(str[0]);
		b = Integer.parseInt(str[1]);
		c = Integer.parseInt(str[2]);
				
		for (int i = a; i <= b; i++) sum += c %i == 0 ? 1 : 0;
				
		System.out.println(sum);
	}
} Main public static void main(String[] args) throws IOException {
		int a, b, c, sum = 0;

		String[] str = new BufferedReader(new InputStreamReader(System.in)).readLine().split("\\s+");
		
		a = Integer.parseInt(str[0]);
		b = Integer.parseInt(str[1]);
		c = Integer.parseInt(str[2]);
				
		for (int i = a; i <= b; i++) sum += c %i == 0 ? 1 : 0;
				
		System.out.println(sum);
	} main {
		int a, b, c, sum = 0;

		String[] str = new BufferedReader(new InputStreamReader(System.in)).readLine().split("\\s+");
		
		a = Integer.parseInt(str[0]);
		b = Integer.parseInt(str[1]);
		c = Integer.parseInt(str[2]);
				
		for (int i = a; i <= b; i++) sum += c %i == 0 ? 1 : 0;
				
		System.out.println(sum);
	} int a a b b c c sum = 0; sum 0 String[] str = new BufferedReader(new InputStreamReader(System.in)).readLine().split("\\s+"); str new BufferedReader(new InputStreamReader(System.in)).readLine().split("\\s+") new BufferedReader(new InputStreamReader(System.in)).readLine().split new BufferedReader(new InputStreamReader(System.in)).readLine() new BufferedReader(new InputStreamReader(System.in)).readLine new BufferedReader(new InputStreamReader(System.in)) "\\s+" a = Integer.parseInt(str[0]) a Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 b = Integer.parseInt(str[1]) b Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 c = Integer.parseInt(str[2]) c Integer.parseInt(str[2]) Integer.parseInt Integer str[2] str 2 for (int i = a; i <= b; i++) sum += c %i == 0 ? 1 : 0; int i = a; int i = a; i a i <= b i b i++ i++ i sum += c %i == 0 ? 1 : 0; sum += c %i == 0 ? 1 : 0 sum c %i == 0 ? 1 : 0 c %i == 0 c %i c i 0 1 0 System.out.println(sum) System.out.println System.out System System.out sum String[] args args public class Main {
	
	public static void main(String[] args) throws IOException {
		int a, b, c, sum = 0;

		String[] str = new BufferedReader(new InputStreamReader(System.in)).readLine().split("\\s+");
		
		a = Integer.parseInt(str[0]);
		b = Integer.parseInt(str[1]);
		c = Integer.parseInt(str[2]);
				
		for (int i = a; i <= b; i++) sum += c %i == 0 ? 1 : 0;
				
		System.out.println(sum);
	}
} public class Main {
	
	public static void main(String[] args) throws IOException {
		int a, b, c, sum = 0;

		String[] str = new BufferedReader(new InputStreamReader(System.in)).readLine().split("\\s+");
		
		a = Integer.parseInt(str[0]);
		b = Integer.parseInt(str[1]);
		c = Integer.parseInt(str[2]);
				
		for (int i = a; i <= b; i++) sum += c %i == 0 ? 1 : 0;
				
		System.out.println(sum);
	}
} Main
import java.io.*;
public class Main {
	
	public static void main(String[] args) throws IOException {
		int a, b, c, sum = 0;

		String[] str = new BufferedReader(new InputStreamReader(System.in)).readLine().split("\\s+");
		
		a = Integer.parseInt(str[0]);
		b = Integer.parseInt(str[1]);
		c = Integer.parseInt(str[2]);
				
		for (int i = a; i <= b; i++) sum += c %i == 0 ? 1 : 0;
				
		System.out.println(sum);
	}
}