import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

class Main {
    public static void main(String[] args) throws IOException {
       Scanner in = new Scanner(System.in);
       int a, b, c;
       a = in.nextInt();
       b = in.nextInt();
       c = in.nextInt();
       int ans = 0;
       for(int i = a; i <= b; i++) {
	       if(c % i == 0) ans++;
       }
       System.out.println(ans);
    }
} import java.io.*; io.* java import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) throws IOException {
       Scanner in = new Scanner(System.in);
       int a, b, c;
       a = in.nextInt();
       b = in.nextInt();
       c = in.nextInt();
       int ans = 0;
       for(int i = a; i <= b; i++) {
	       if(c % i == 0) ans++;
       }
       System.out.println(ans);
    }
} Main public static void main(String[] args) throws IOException {
       Scanner in = new Scanner(System.in);
       int a, b, c;
       a = in.nextInt();
       b = in.nextInt();
       c = in.nextInt();
       int ans = 0;
       for(int i = a; i <= b; i++) {
	       if(c % i == 0) ans++;
       }
       System.out.println(ans);
    } main {
       Scanner in = new Scanner(System.in);
       int a, b, c;
       a = in.nextInt();
       b = in.nextInt();
       c = in.nextInt();
       int ans = 0;
       for(int i = a; i <= b; i++) {
	       if(c % i == 0) ans++;
       }
       System.out.println(ans);
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int a a b b c; c a = in.nextInt() a in.nextInt() in.nextInt in b = in.nextInt() b in.nextInt() in.nextInt in c = in.nextInt() c in.nextInt() in.nextInt in int ans = 0; ans 0 for(int i = a; i <= b; i++) {
	       if(c % i == 0) ans++;
       } int i = a; int i = a; i a i <= b i b i++ i++ i {
	       if(c % i == 0) ans++;
       } {
	       if(c % i == 0) ans++;
       } if(c % i == 0) ans++; c % i == 0 c % i c i 0 ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

class Main {
    public static void main(String[] args) throws IOException {
       Scanner in = new Scanner(System.in);
       int a, b, c;
       a = in.nextInt();
       b = in.nextInt();
       c = in.nextInt();
       int ans = 0;
       for(int i = a; i <= b; i++) {
	       if(c % i == 0) ans++;
       }
       System.out.println(ans);
    }
}