import java.util.Scanner;

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

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

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

	int cnt=0;
	for(int num = a; num<=b; num++){
	    if(c%num==0)cnt++;
	}
	System.out.println(cnt);
    } main {
	Scanner in = new Scanner(System.in);
	int a = in.nextInt();
	int b = in.nextInt();
        int c = in.nextInt();

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

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

	int cnt=0;
	for(int num = a; num<=b; num++){
	    if(c%num==0)cnt++;
	}
	System.out.println(cnt);
    }
} Main
import java.util.Scanner;

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

	int cnt=0;
	for(int num = a; num<=b; num++){
	    if(c%num==0)cnt++;
	}
	System.out.println(cnt);
    }
}

