import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

		//System.out.println("??\???>>");

		Scanner scan = new Scanner(System.in);
		//ArrayList<Integer[]> list = new ArrayList<Integer[]>();

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

		int intCount = 0;

		if(a < b){

			for(int i = a; i <= b; i++){

				if(c % i == 0){
					intCount++;
				}
				//System.out.println("i: " + i);
			}
			//System.out.println("intCount: " + intCount);
			System.out.println(intCount);
		}else{

			for(int i = b; i <= a; i++){

				if(c % i == 0){
					intCount++;
				}
				//System.out.println("i: " + i);
			}
			//System.out.println("intCount: " + intCount);
			System.out.println(intCount);
		}

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

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

		//System.out.println("??\???>>");

		Scanner scan = new Scanner(System.in);
		//ArrayList<Integer[]> list = new ArrayList<Integer[]>();

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

		int intCount = 0;

		if(a < b){

			for(int i = a; i <= b; i++){

				if(c % i == 0){
					intCount++;
				}
				//System.out.println("i: " + i);
			}
			//System.out.println("intCount: " + intCount);
			System.out.println(intCount);
		}else{

			for(int i = b; i <= a; i++){

				if(c % i == 0){
					intCount++;
				}
				//System.out.println("i: " + i);
			}
			//System.out.println("intCount: " + intCount);
			System.out.println(intCount);
		}

	}
} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

		//System.out.println("??\???>>");

		Scanner scan = new Scanner(System.in);
		//ArrayList<Integer[]> list = new ArrayList<Integer[]>();

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

		int intCount = 0;

		if(a < b){

			for(int i = a; i <= b; i++){

				if(c % i == 0){
					intCount++;
				}
				//System.out.println("i: " + i);
			}
			//System.out.println("intCount: " + intCount);
			System.out.println(intCount);
		}else{

			for(int i = b; i <= a; i++){

				if(c % i == 0){
					intCount++;
				}
				//System.out.println("i: " + i);
			}
			//System.out.println("intCount: " + intCount);
			System.out.println(intCount);
		}

	} main {
		// TODO ?????????????????????????????????????????????

		//System.out.println("??\???>>");

		Scanner scan = new Scanner(System.in);
		//ArrayList<Integer[]> list = new ArrayList<Integer[]>();

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

		int intCount = 0;

		if(a < b){

			for(int i = a; i <= b; i++){

				if(c % i == 0){
					intCount++;
				}
				//System.out.println("i: " + i);
			}
			//System.out.println("intCount: " + intCount);
			System.out.println(intCount);
		}else{

			for(int i = b; i <= a; i++){

				if(c % i == 0){
					intCount++;
				}
				//System.out.println("i: " + i);
			}
			//System.out.println("intCount: " + intCount);
			System.out.println(intCount);
		}

	} 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 intCount = 0; intCount 0 if(a < b){

			for(int i = a; i <= b; i++){

				if(c % i == 0){
					intCount++;
				}
				//System.out.println("i: " + i);
			}
			//System.out.println("intCount: " + intCount);
			System.out.println(intCount);
		}else{

			for(int i = b; i <= a; i++){

				if(c % i == 0){
					intCount++;
				}
				//System.out.println("i: " + i);
			}
			//System.out.println("intCount: " + intCount);
			System.out.println(intCount);
		} a < b a b {

			for(int i = a; i <= b; i++){

				if(c % i == 0){
					intCount++;
				}
				//System.out.println("i: " + i);
			}
			//System.out.println("intCount: " + intCount);
			System.out.println(intCount);
		} for(int i = a; i <= b; i++){

				if(c % i == 0){
					intCount++;
				}
				//System.out.println("i: " + i);
			} int i = a; int i = a; i a i <= b i b i++ i++ i {

				if(c % i == 0){
					intCount++;
				}
				//System.out.println("i: " + i);
			} {

				if(c % i == 0){
					intCount++;
				}
				//System.out.println("i: " + i);
			} if(c % i == 0){
					intCount++;
				} c % i == 0 c % i c i 0 {
					intCount++;
				} intCount++ intCount System.out.println(intCount) System.out.println System.out System System.out intCount {

			for(int i = b; i <= a; i++){

				if(c % i == 0){
					intCount++;
				}
				//System.out.println("i: " + i);
			}
			//System.out.println("intCount: " + intCount);
			System.out.println(intCount);
		} for(int i = b; i <= a; i++){

				if(c % i == 0){
					intCount++;
				}
				//System.out.println("i: " + i);
			} int i = b; int i = b; i b i <= a i a i++ i++ i {

				if(c % i == 0){
					intCount++;
				}
				//System.out.println("i: " + i);
			} {

				if(c % i == 0){
					intCount++;
				}
				//System.out.println("i: " + i);
			} if(c % i == 0){
					intCount++;
				} c % i == 0 c % i c i 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) {
		// TODO ?????????????????????????????????????????????

		//System.out.println("??\???>>");

		Scanner scan = new Scanner(System.in);
		//ArrayList<Integer[]> list = new ArrayList<Integer[]>();

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

		int intCount = 0;

		if(a < b){

			for(int i = a; i <= b; i++){

				if(c % i == 0){
					intCount++;
				}
				//System.out.println("i: " + i);
			}
			//System.out.println("intCount: " + intCount);
			System.out.println(intCount);
		}else{

			for(int i = b; i <= a; i++){

				if(c % i == 0){
					intCount++;
				}
				//System.out.println("i: " + i);
			}
			//System.out.println("intCount: " + intCount);
			System.out.println(intCount);
		}

	}
} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

		//System.out.println("??\???>>");

		Scanner scan = new Scanner(System.in);
		//ArrayList<Integer[]> list = new ArrayList<Integer[]>();

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

		int intCount = 0;

		if(a < b){

			for(int i = a; i <= b; i++){

				if(c % i == 0){
					intCount++;
				}
				//System.out.println("i: " + i);
			}
			//System.out.println("intCount: " + intCount);
			System.out.println(intCount);
		}else{

			for(int i = b; i <= a; i++){

				if(c % i == 0){
					intCount++;
				}
				//System.out.println("i: " + i);
			}
			//System.out.println("intCount: " + intCount);
			System.out.println(intCount);
		}

	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

		//System.out.println("??\???>>");

		Scanner scan = new Scanner(System.in);
		//ArrayList<Integer[]> list = new ArrayList<Integer[]>();

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

		int intCount = 0;

		if(a < b){

			for(int i = a; i <= b; i++){

				if(c % i == 0){
					intCount++;
				}
				//System.out.println("i: " + i);
			}
			//System.out.println("intCount: " + intCount);
			System.out.println(intCount);
		}else{

			for(int i = b; i <= a; i++){

				if(c % i == 0){
					intCount++;
				}
				//System.out.println("i: " + i);
			}
			//System.out.println("intCount: " + intCount);
			System.out.println(intCount);
		}

	}
}