import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		
		int n = b - a + 1;
		int count = 0;
		
		for(int i = 0; i < n; i++) {
			if(c % (a + i) == 0) {
				count++;
			}
		}
		
		System.out.println(count);
		
	}

}
 import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		
		int n = b - a + 1;
		int count = 0;
		
		for(int i = 0; i < n; i++) {
			if(c % (a + i) == 0) {
				count++;
			}
		}
		
		System.out.println(count);
		
	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		
		int n = b - a + 1;
		int count = 0;
		
		for(int i = 0; i < n; i++) {
			if(c % (a + i) == 0) {
				count++;
			}
		}
		
		System.out.println(count);
		
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		
		int n = b - a + 1;
		int count = 0;
		
		for(int i = 0; i < n; i++) {
			if(c % (a + i) == 0) {
				count++;
			}
		}
		
		System.out.println(count);
		
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int c = scan.nextInt(); c scan.nextInt() scan.nextInt scan int n = b - a + 1; n b - a + 1 b - a b a 1 int count = 0; count 0 for(int i = 0; i < n; i++) {
			if(c % (a + i) == 0) {
				count++;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			if(c % (a + i) == 0) {
				count++;
			}
		} {
			if(c % (a + i) == 0) {
				count++;
			}
		} if(c % (a + i) == 0) {
				count++;
			} c % (a + i) == 0 c % (a + i) c (a + i) a i 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) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		
		int n = b - a + 1;
		int count = 0;
		
		for(int i = 0; i < n; i++) {
			if(c % (a + i) == 0) {
				count++;
			}
		}
		
		System.out.println(count);
		
	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		
		int n = b - a + 1;
		int count = 0;
		
		for(int i = 0; i < n; i++) {
			if(c % (a + i) == 0) {
				count++;
			}
		}
		
		System.out.println(count);
		
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		
		int n = b - a + 1;
		int count = 0;
		
		for(int i = 0; i < n; i++) {
			if(c % (a + i) == 0) {
				count++;
			}
		}
		
		System.out.println(count);
		
	}

}

