import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	while(scan.hasNext()) {
	    String input = scan.nextLine();
	    String[] inputs = input.split(" ");
	    int a = Integer.parseInt(inputs[0]);
	    int b = Integer.parseInt(inputs[1]);
	    int c = Integer.parseInt(inputs[2]);
	    int count = 0;
	    for (int i = a; i <= b; i++) {
		if (c % i ==0) {
		    count++;
		}
	    }
	    System.out.println(count);
	}
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	while(scan.hasNext()) {
	    String input = scan.nextLine();
	    String[] inputs = input.split(" ");
	    int a = Integer.parseInt(inputs[0]);
	    int b = Integer.parseInt(inputs[1]);
	    int c = Integer.parseInt(inputs[2]);
	    int count = 0;
	    for (int i = a; i <= b; i++) {
		if (c % i ==0) {
		    count++;
		}
	    }
	    System.out.println(count);
	}
    }
} Main public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	while(scan.hasNext()) {
	    String input = scan.nextLine();
	    String[] inputs = input.split(" ");
	    int a = Integer.parseInt(inputs[0]);
	    int b = Integer.parseInt(inputs[1]);
	    int c = Integer.parseInt(inputs[2]);
	    int count = 0;
	    for (int i = a; i <= b; i++) {
		if (c % i ==0) {
		    count++;
		}
	    }
	    System.out.println(count);
	}
    } main {
	Scanner scan = new Scanner(System.in);
	while(scan.hasNext()) {
	    String input = scan.nextLine();
	    String[] inputs = input.split(" ");
	    int a = Integer.parseInt(inputs[0]);
	    int b = Integer.parseInt(inputs[1]);
	    int c = Integer.parseInt(inputs[2]);
	    int count = 0;
	    for (int i = a; i <= b; i++) {
		if (c % i ==0) {
		    count++;
		}
	    }
	    System.out.println(count);
	}
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) while(scan.hasNext()) {
	    String input = scan.nextLine();
	    String[] inputs = input.split(" ");
	    int a = Integer.parseInt(inputs[0]);
	    int b = Integer.parseInt(inputs[1]);
	    int c = Integer.parseInt(inputs[2]);
	    int count = 0;
	    for (int i = a; i <= b; i++) {
		if (c % i ==0) {
		    count++;
		}
	    }
	    System.out.println(count);
	} scan.hasNext() scan.hasNext scan {
	    String input = scan.nextLine();
	    String[] inputs = input.split(" ");
	    int a = Integer.parseInt(inputs[0]);
	    int b = Integer.parseInt(inputs[1]);
	    int c = Integer.parseInt(inputs[2]);
	    int count = 0;
	    for (int i = a; i <= b; i++) {
		if (c % i ==0) {
		    count++;
		}
	    }
	    System.out.println(count);
	} String input = scan.nextLine(); input scan.nextLine() scan.nextLine scan String[] inputs = input.split(" "); inputs input.split(" ") input.split input " " int a = Integer.parseInt(inputs[0]); a Integer.parseInt(inputs[0]) Integer.parseInt Integer inputs[0] inputs 0 int b = Integer.parseInt(inputs[1]); b Integer.parseInt(inputs[1]) Integer.parseInt Integer inputs[1] inputs 1 int c = Integer.parseInt(inputs[2]); c Integer.parseInt(inputs[2]) Integer.parseInt Integer inputs[2] inputs 2 int count = 0; count 0 for (int i = a; i <= b; i++) {
		if (c % i ==0) {
		    count++;
		}
	    } int i = a; int i = a; i a i <= b i b i++ i++ i {
		if (c % i ==0) {
		    count++;
		}
	    } {
		if (c % i ==0) {
		    count++;
		}
	    } if (c % i ==0) {
		    count++;
		} c % i ==0 c % i c 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) {
	Scanner scan = new Scanner(System.in);
	while(scan.hasNext()) {
	    String input = scan.nextLine();
	    String[] inputs = input.split(" ");
	    int a = Integer.parseInt(inputs[0]);
	    int b = Integer.parseInt(inputs[1]);
	    int c = Integer.parseInt(inputs[2]);
	    int count = 0;
	    for (int i = a; i <= b; i++) {
		if (c % i ==0) {
		    count++;
		}
	    }
	    System.out.println(count);
	}
    }
} public class Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	while(scan.hasNext()) {
	    String input = scan.nextLine();
	    String[] inputs = input.split(" ");
	    int a = Integer.parseInt(inputs[0]);
	    int b = Integer.parseInt(inputs[1]);
	    int c = Integer.parseInt(inputs[2]);
	    int count = 0;
	    for (int i = a; i <= b; i++) {
		if (c % i ==0) {
		    count++;
		}
	    }
	    System.out.println(count);
	}
    }
} Main
import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	while(scan.hasNext()) {
	    String input = scan.nextLine();
	    String[] inputs = input.split(" ");
	    int a = Integer.parseInt(inputs[0]);
	    int b = Integer.parseInt(inputs[1]);
	    int c = Integer.parseInt(inputs[2]);
	    int count = 0;
	    for (int i = a; i <= b; i++) {
		if (c % i ==0) {
		    count++;
		}
	    }
	    System.out.println(count);
	}
    }
}