import java.util.Scanner;
class Main {
	
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		int numA = scanner.nextInt();
        int numB = scanner.nextInt();
        int numC = scanner.nextInt();
        int ans = 0;
        
        for (int val = numA;val <= numB;val++){
        	if(numC % val == 0) ans++;
        }	
        System.out.println(ans);	
	}	
} import java.util.Scanner; Scanner java.util class Main {
	
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		int numA = scanner.nextInt();
        int numB = scanner.nextInt();
        int numC = scanner.nextInt();
        int ans = 0;
        
        for (int val = numA;val <= numB;val++){
        	if(numC % val == 0) ans++;
        }	
        System.out.println(ans);	
	}	
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		int numA = scanner.nextInt();
        int numB = scanner.nextInt();
        int numC = scanner.nextInt();
        int ans = 0;
        
        for (int val = numA;val <= numB;val++){
        	if(numC % val == 0) ans++;
        }	
        System.out.println(ans);	
	} main {
		Scanner scanner = new Scanner(System.in);
		
		int numA = scanner.nextInt();
        int numB = scanner.nextInt();
        int numC = scanner.nextInt();
        int ans = 0;
        
        for (int val = numA;val <= numB;val++){
        	if(numC % val == 0) ans++;
        }	
        System.out.println(ans);	
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int numA = scanner.nextInt(); numA scanner.nextInt() scanner.nextInt scanner int numB = scanner.nextInt(); numB scanner.nextInt() scanner.nextInt scanner int numC = scanner.nextInt(); numC scanner.nextInt() scanner.nextInt scanner int ans = 0; ans 0 for (int val = numA;val <= numB;val++){
        	if(numC % val == 0) ans++;
        } int val = numA; int val = numA; val numA val <= numB val numB val++ val++ val {
        	if(numC % val == 0) ans++;
        } {
        	if(numC % val == 0) ans++;
        } if(numC % val == 0) ans++; numC % val == 0 numC % val numC val 0 ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.Scanner;
class Main {
	
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		int numA = scanner.nextInt();
        int numB = scanner.nextInt();
        int numC = scanner.nextInt();
        int ans = 0;
        
        for (int val = numA;val <= numB;val++){
        	if(numC % val == 0) ans++;
        }	
        System.out.println(ans);	
	}	
}