import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		 int a = scanner.nextInt();
		 int b = scanner.nextInt();
		 int c = scanner.nextInt();

		 int count = 0;

		 /*
		 if(a == b){
			 if(b == c){
				 count++;
			 }
		 }
		 */

		 while(a<=b){
			 if(0 == (c % a)){
				 count++;
				 a++;
			 }else{
				 a++;
			 }
		 }

		 System.out.println(count);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		 int a = scanner.nextInt();
		 int b = scanner.nextInt();
		 int c = scanner.nextInt();

		 int count = 0;

		 /*
		 if(a == b){
			 if(b == c){
				 count++;
			 }
		 }
		 */

		 while(a<=b){
			 if(0 == (c % a)){
				 count++;
				 a++;
			 }else{
				 a++;
			 }
		 }

		 System.out.println(count);
	}
} Main public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		 int a = scanner.nextInt();
		 int b = scanner.nextInt();
		 int c = scanner.nextInt();

		 int count = 0;

		 /*
		 if(a == b){
			 if(b == c){
				 count++;
			 }
		 }
		 */

		 while(a<=b){
			 if(0 == (c % a)){
				 count++;
				 a++;
			 }else{
				 a++;
			 }
		 }

		 System.out.println(count);
	} main {

		Scanner scanner = new Scanner(System.in);

		 int a = scanner.nextInt();
		 int b = scanner.nextInt();
		 int c = scanner.nextInt();

		 int count = 0;

		 /*
		 if(a == b){
			 if(b == c){
				 count++;
			 }
		 }
		 */

		 while(a<=b){
			 if(0 == (c % a)){
				 count++;
				 a++;
			 }else{
				 a++;
			 }
		 }

		 System.out.println(count);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner int c = scanner.nextInt(); c scanner.nextInt() scanner.nextInt scanner int count = 0; count 0 while(a<=b){
			 if(0 == (c % a)){
				 count++;
				 a++;
			 }else{
				 a++;
			 }
		 } a<=b a b {
			 if(0 == (c % a)){
				 count++;
				 a++;
			 }else{
				 a++;
			 }
		 } if(0 == (c % a)){
				 count++;
				 a++;
			 }else{
				 a++;
			 } 0 == (c % a) 0 (c % a) c a {
				 count++;
				 a++;
			 } count++ count a++ a {
				 a++;
			 } a++ a 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) {

		Scanner scanner = new Scanner(System.in);

		 int a = scanner.nextInt();
		 int b = scanner.nextInt();
		 int c = scanner.nextInt();

		 int count = 0;

		 /*
		 if(a == b){
			 if(b == c){
				 count++;
			 }
		 }
		 */

		 while(a<=b){
			 if(0 == (c % a)){
				 count++;
				 a++;
			 }else{
				 a++;
			 }
		 }

		 System.out.println(count);
	}
} public class Main {
	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		 int a = scanner.nextInt();
		 int b = scanner.nextInt();
		 int c = scanner.nextInt();

		 int count = 0;

		 /*
		 if(a == b){
			 if(b == c){
				 count++;
			 }
		 }
		 */

		 while(a<=b){
			 if(0 == (c % a)){
				 count++;
				 a++;
			 }else{
				 a++;
			 }
		 }

		 System.out.println(count);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		 int a = scanner.nextInt();
		 int b = scanner.nextInt();
		 int c = scanner.nextInt();

		 int count = 0;

		 /*
		 if(a == b){
			 if(b == c){
				 count++;
			 }
		 }
		 */

		 while(a<=b){
			 if(0 == (c % a)){
				 count++;
				 a++;
			 }else{
				 a++;
			 }
		 }

		 System.out.println(count);
	}
}