import java.util.*;
import java.lang.*;
import java.io.*;
class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
		int ans = 0;
		for(int i = a; i <= b; ++i) {
			if(c % i == 0) {
				++ans;
			}
		}
		System.out.println(ans);
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
		int ans = 0;
		for(int i = a; i <= b; ++i) {
			if(c % i == 0) {
				++ans;
			}
		}
		System.out.println(ans);
	}
} Main public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
		int ans = 0;
		for(int i = a; i <= b; ++i) {
			if(c % i == 0) {
				++ans;
			}
		}
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
		int ans = 0;
		for(int i = a; i <= b; ++i) {
			if(c % i == 0) {
				++ans;
			}
		}
		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int ans = 0; ans 0 for(int i = a; i <= b; ++i) {
			if(c % i == 0) {
				++ans;
			}
		} int i = a; int i = a; i a i <= b i b ++i ++i i {
			if(c % i == 0) {
				++ans;
			}
		} {
			if(c % i == 0) {
				++ans;
			}
		} if(c % i == 0) {
				++ans;
			} c % i == 0 c % i c i 0 {
				++ans;
			} ++ans ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;
import java.lang.*;
import java.io.*;
class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
		int ans = 0;
		for(int i = a; i <= b; ++i) {
			if(c % i == 0) {
				++ans;
			}
		}
		System.out.println(ans);
	}
}
