import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args)throws IOException{
		int count = 0;
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String inputData = br.readLine();
		String[] inputValue = inputData.split(" ");

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

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

		System.out.println(count);
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args)throws IOException{
		int count = 0;
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String inputData = br.readLine();
		String[] inputValue = inputData.split(" ");

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

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

		System.out.println(count);
	}

} Main public static void main(String[] args)throws IOException{
		int count = 0;
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String inputData = br.readLine();
		String[] inputValue = inputData.split(" ");

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

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

		System.out.println(count);
	} main {
		int count = 0;
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String inputData = br.readLine();
		String[] inputValue = inputData.split(" ");

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

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

		System.out.println(count);
	} int count = 0; count 0 BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String inputData = br.readLine(); inputData br.readLine() br.readLine br String[] inputValue = inputData.split(" "); inputValue inputData.split(" ") inputData.split inputData " " int a = Integer.parseInt(inputValue[0]); a Integer.parseInt(inputValue[0]) Integer.parseInt Integer inputValue[0] inputValue 0 int b = Integer.parseInt(inputValue[1]); b Integer.parseInt(inputValue[1]) Integer.parseInt Integer inputValue[1] inputValue 1 int c = Integer.parseInt(inputValue[2]); c Integer.parseInt(inputValue[2]) Integer.parseInt Integer inputValue[2] inputValue 2 for(int i = a; i <= b; i ++){
			int divisor = c % i;
			if(divisor == 0){
				count ++;
			}
		} int i = a; int i = a; i a i <= b i b i ++ i ++ i {
			int divisor = c % i;
			if(divisor == 0){
				count ++;
			}
		} {
			int divisor = c % i;
			if(divisor == 0){
				count ++;
			}
		} int divisor = c % i; divisor c % i c i if(divisor == 0){
				count ++;
			} divisor == 0 divisor 0 {
				count ++;
			} count ++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
	public static void main(String[] args)throws IOException{
		int count = 0;
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String inputData = br.readLine();
		String[] inputValue = inputData.split(" ");

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

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

		System.out.println(count);
	}

} public class Main {
	public static void main(String[] args)throws IOException{
		int count = 0;
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String inputData = br.readLine();
		String[] inputValue = inputData.split(" ");

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

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

		System.out.println(count);
	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args)throws IOException{
		int count = 0;
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String inputData = br.readLine();
		String[] inputValue = inputData.split(" ");

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

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

		System.out.println(count);
	}

}