import java.util.Scanner;

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int inputNum1 = sc.nextInt();
		int intCount = 0;

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

		for(int i = a; i <= b; i++) {
			int intYakusuu = inputNum1 % i;
			if(intYakusuu == 0) {
				intCount++;
			}
		}
		System.out.println(intCount);
	}
} Main public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int inputNum1 = sc.nextInt();
		int intCount = 0;

		for(int i = a; i <= b; i++) {
			int intYakusuu = inputNum1 % i;
			if(intYakusuu == 0) {
				intCount++;
			}
		}
		System.out.println(intCount);
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int inputNum1 = sc.nextInt();
		int intCount = 0;

		for(int i = a; i <= b; i++) {
			int intYakusuu = inputNum1 % i;
			if(intYakusuu == 0) {
				intCount++;
			}
		}
		System.out.println(intCount);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int inputNum1 = sc.nextInt(); inputNum1 sc.nextInt() sc.nextInt sc int intCount = 0; intCount 0 for(int i = a; i <= b; i++) {
			int intYakusuu = inputNum1 % i;
			if(intYakusuu == 0) {
				intCount++;
			}
		} int i = a; int i = a; i a i <= b i b i++ i++ i {
			int intYakusuu = inputNum1 % i;
			if(intYakusuu == 0) {
				intCount++;
			}
		} {
			int intYakusuu = inputNum1 % i;
			if(intYakusuu == 0) {
				intCount++;
			}
		} int intYakusuu = inputNum1 % i; intYakusuu inputNum1 % i inputNum1 i if(intYakusuu == 0) {
				intCount++;
			} intYakusuu == 0 intYakusuu 0 {
				intCount++;
			} intCount++ intCount System.out.println(intCount) System.out.println System.out System System.out intCount String[] args args public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int inputNum1 = sc.nextInt();
		int intCount = 0;

		for(int i = a; i <= b; i++) {
			int intYakusuu = inputNum1 % i;
			if(intYakusuu == 0) {
				intCount++;
			}
		}
		System.out.println(intCount);
	}
} public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int inputNum1 = sc.nextInt();
		int intCount = 0;

		for(int i = a; i <= b; i++) {
			int intYakusuu = inputNum1 % i;
			if(intYakusuu == 0) {
				intCount++;
			}
		}
		System.out.println(intCount);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int inputNum1 = sc.nextInt();
		int intCount = 0;

		for(int i = a; i <= b; i++) {
			int intYakusuu = inputNum1 % i;
			if(intYakusuu == 0) {
				intCount++;
			}
		}
		System.out.println(intCount);
	}
}