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

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strArr = br.readLine().split(" ");
		long a, b, c, count = 0;
		a = Long.parseLong(strArr[0]);
		b = Long.parseLong(strArr[1]);
		c = Long.parseLong(strArr[2]);
		for(long i = a;i <= b;i++){
			count += (c % i == 0)?1:0;
		}
		System.out.printf("%d%n", 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 {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strArr = br.readLine().split(" ");
		long a, b, c, count = 0;
		a = Long.parseLong(strArr[0]);
		b = Long.parseLong(strArr[1]);
		c = Long.parseLong(strArr[2]);
		for(long i = a;i <= b;i++){
			count += (c % i == 0)?1:0;
		}
		System.out.printf("%d%n", count);
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strArr = br.readLine().split(" ");
		long a, b, c, count = 0;
		a = Long.parseLong(strArr[0]);
		b = Long.parseLong(strArr[1]);
		c = Long.parseLong(strArr[2]);
		for(long i = a;i <= b;i++){
			count += (c % i == 0)?1:0;
		}
		System.out.printf("%d%n", count);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strArr = br.readLine().split(" ");
		long a, b, c, count = 0;
		a = Long.parseLong(strArr[0]);
		b = Long.parseLong(strArr[1]);
		c = Long.parseLong(strArr[2]);
		for(long i = a;i <= b;i++){
			count += (c % i == 0)?1:0;
		}
		System.out.printf("%d%n", count);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] strArr = br.readLine().split(" "); strArr br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " long a a b b c c count = 0; count 0 a = Long.parseLong(strArr[0]) a Long.parseLong(strArr[0]) Long.parseLong Long strArr[0] strArr 0 b = Long.parseLong(strArr[1]) b Long.parseLong(strArr[1]) Long.parseLong Long strArr[1] strArr 1 c = Long.parseLong(strArr[2]) c Long.parseLong(strArr[2]) Long.parseLong Long strArr[2] strArr 2 for(long i = a;i <= b;i++){
			count += (c % i == 0)?1:0;
		} long i = a; long i = a; i a i <= b i b i++ i++ i {
			count += (c % i == 0)?1:0;
		} {
			count += (c % i == 0)?1:0;
		} count += (c % i == 0)?1:0 count (c % i == 0)?1:0 (c % i == 0) c % i c i 0 1 0 System.out.printf("%d%n", count) System.out.printf System.out System System.out "%d%n" count String[] args args public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strArr = br.readLine().split(" ");
		long a, b, c, count = 0;
		a = Long.parseLong(strArr[0]);
		b = Long.parseLong(strArr[1]);
		c = Long.parseLong(strArr[2]);
		for(long i = a;i <= b;i++){
			count += (c % i == 0)?1:0;
		}
		System.out.printf("%d%n", count);
	}
} public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strArr = br.readLine().split(" ");
		long a, b, c, count = 0;
		a = Long.parseLong(strArr[0]);
		b = Long.parseLong(strArr[1]);
		c = Long.parseLong(strArr[2]);
		for(long i = a;i <= b;i++){
			count += (c % i == 0)?1:0;
		}
		System.out.printf("%d%n", 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 {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strArr = br.readLine().split(" ");
		long a, b, c, count = 0;
		a = Long.parseLong(strArr[0]);
		b = Long.parseLong(strArr[1]);
		c = Long.parseLong(strArr[2]);
		for(long i = a;i <= b;i++){
			count += (c % i == 0)?1:0;
		}
		System.out.printf("%d%n", count);
	}
}