import java.util.Arrays;
import java.util.Scanner;


public class Main {
	
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		final long a = sc.nextLong();
		final long b = sc.nextLong();
		final long c = sc.nextLong();
		
		int count = 0;
		for(long pos = a; pos <= b; pos++){
			if(c % pos == 0){
				count++;
			}
		}
		
		System.out.println(count);
		
	}
	
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		final long a = sc.nextLong();
		final long b = sc.nextLong();
		final long c = sc.nextLong();
		
		int count = 0;
		for(long pos = a; pos <= b; pos++){
			if(c % pos == 0){
				count++;
			}
		}
		
		System.out.println(count);
		
	}
	
} Main public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		final long a = sc.nextLong();
		final long b = sc.nextLong();
		final long c = sc.nextLong();
		
		int count = 0;
		for(long pos = a; pos <= b; pos++){
			if(c % pos == 0){
				count++;
			}
		}
		
		System.out.println(count);
		
	} main {
		Scanner sc = new Scanner(System.in);
		
		final long a = sc.nextLong();
		final long b = sc.nextLong();
		final long c = sc.nextLong();
		
		int count = 0;
		for(long pos = a; pos <= b; pos++){
			if(c % pos == 0){
				count++;
			}
		}
		
		System.out.println(count);
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final long a = sc.nextLong(); a sc.nextLong() sc.nextLong sc final long b = sc.nextLong(); b sc.nextLong() sc.nextLong sc final long c = sc.nextLong(); c sc.nextLong() sc.nextLong sc int count = 0; count 0 for(long pos = a; pos <= b; pos++){
			if(c % pos == 0){
				count++;
			}
		} long pos = a; long pos = a; pos a pos <= b pos b pos++ pos++ pos {
			if(c % pos == 0){
				count++;
			}
		} {
			if(c % pos == 0){
				count++;
			}
		} if(c % pos == 0){
				count++;
			} c % pos == 0 c % pos c pos 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 sc = new Scanner(System.in);
		
		final long a = sc.nextLong();
		final long b = sc.nextLong();
		final long c = sc.nextLong();
		
		int count = 0;
		for(long pos = a; pos <= b; pos++){
			if(c % pos == 0){
				count++;
			}
		}
		
		System.out.println(count);
		
	}
	
} public class Main {
	
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		final long a = sc.nextLong();
		final long b = sc.nextLong();
		final long c = sc.nextLong();
		
		int count = 0;
		for(long pos = a; pos <= b; pos++){
			if(c % pos == 0){
				count++;
			}
		}
		
		System.out.println(count);
		
	}
	
} Main
import java.util.Arrays;
import java.util.Scanner;


public class Main {
	
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		final long a = sc.nextLong();
		final long b = sc.nextLong();
		final long c = sc.nextLong();
		
		int count = 0;
		for(long pos = a; pos <= b; pos++){
			if(c % pos == 0){
				count++;
			}
		}
		
		System.out.println(count);
		
	}
	
}