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