import java.util.*;

//divisor Number
public class Main {
	public static void main(String args[])
	{
		String[] str = new String[3];
		int[] output = new int[3];
		Scanner sc = new Scanner(System.in);
		str = sc.nextLine().split(" ");
		output[0] = Integer.parseInt(str[0]);
		output[1] = Integer.parseInt(str[1]);
		output[2] = Integer.parseInt(str[2]);
		
		int number = 0;
		int divisor = 0;
		for(number = output[0];number<=output[1];number++)
		{
			if(output[2]%number == 0)
			{
				divisor++;
			}
		}
		System.out.println(divisor);
		sc.close();

	}
}
 import java.util.*; util.* java public class Main {
	public static void main(String args[])
	{
		String[] str = new String[3];
		int[] output = new int[3];
		Scanner sc = new Scanner(System.in);
		str = sc.nextLine().split(" ");
		output[0] = Integer.parseInt(str[0]);
		output[1] = Integer.parseInt(str[1]);
		output[2] = Integer.parseInt(str[2]);
		
		int number = 0;
		int divisor = 0;
		for(number = output[0];number<=output[1];number++)
		{
			if(output[2]%number == 0)
			{
				divisor++;
			}
		}
		System.out.println(divisor);
		sc.close();

	}
} Main public static void main(String args[])
	{
		String[] str = new String[3];
		int[] output = new int[3];
		Scanner sc = new Scanner(System.in);
		str = sc.nextLine().split(" ");
		output[0] = Integer.parseInt(str[0]);
		output[1] = Integer.parseInt(str[1]);
		output[2] = Integer.parseInt(str[2]);
		
		int number = 0;
		int divisor = 0;
		for(number = output[0];number<=output[1];number++)
		{
			if(output[2]%number == 0)
			{
				divisor++;
			}
		}
		System.out.println(divisor);
		sc.close();

	} main {
		String[] str = new String[3];
		int[] output = new int[3];
		Scanner sc = new Scanner(System.in);
		str = sc.nextLine().split(" ");
		output[0] = Integer.parseInt(str[0]);
		output[1] = Integer.parseInt(str[1]);
		output[2] = Integer.parseInt(str[2]);
		
		int number = 0;
		int divisor = 0;
		for(number = output[0];number<=output[1];number++)
		{
			if(output[2]%number == 0)
			{
				divisor++;
			}
		}
		System.out.println(divisor);
		sc.close();

	} String[] str = new String[3]; str new String[3] 3 int[] output = new int[3]; output new int[3] 3 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) str = sc.nextLine().split(" ") str sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " output[0] = Integer.parseInt(str[0]) output[0] output 0 Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 output[1] = Integer.parseInt(str[1]) output[1] output 1 Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 output[2] = Integer.parseInt(str[2]) output[2] output 2 Integer.parseInt(str[2]) Integer.parseInt Integer str[2] str 2 int number = 0; number 0 int divisor = 0; divisor 0 for(number = output[0];number<=output[1];number++)
		{
			if(output[2]%number == 0)
			{
				divisor++;
			}
		} number = output[0]; number = output[0] number output[0] output 0 number<=output[1] number output[1] output 1 number++ number++ number {
			if(output[2]%number == 0)
			{
				divisor++;
			}
		} {
			if(output[2]%number == 0)
			{
				divisor++;
			}
		} if(output[2]%number == 0)
			{
				divisor++;
			} output[2]%number == 0 output[2]%number output[2] output 2 number 0 {
				divisor++;
			} divisor++ divisor System.out.println(divisor) System.out.println System.out System System.out divisor sc.close() sc.close sc String args[] args public class Main {
	public static void main(String args[])
	{
		String[] str = new String[3];
		int[] output = new int[3];
		Scanner sc = new Scanner(System.in);
		str = sc.nextLine().split(" ");
		output[0] = Integer.parseInt(str[0]);
		output[1] = Integer.parseInt(str[1]);
		output[2] = Integer.parseInt(str[2]);
		
		int number = 0;
		int divisor = 0;
		for(number = output[0];number<=output[1];number++)
		{
			if(output[2]%number == 0)
			{
				divisor++;
			}
		}
		System.out.println(divisor);
		sc.close();

	}
} public class Main {
	public static void main(String args[])
	{
		String[] str = new String[3];
		int[] output = new int[3];
		Scanner sc = new Scanner(System.in);
		str = sc.nextLine().split(" ");
		output[0] = Integer.parseInt(str[0]);
		output[1] = Integer.parseInt(str[1]);
		output[2] = Integer.parseInt(str[2]);
		
		int number = 0;
		int divisor = 0;
		for(number = output[0];number<=output[1];number++)
		{
			if(output[2]%number == 0)
			{
				divisor++;
			}
		}
		System.out.println(divisor);
		sc.close();

	}
} Main
import java.util.*;

//divisor Number
public class Main {
	public static void main(String args[])
	{
		String[] str = new String[3];
		int[] output = new int[3];
		Scanner sc = new Scanner(System.in);
		str = sc.nextLine().split(" ");
		output[0] = Integer.parseInt(str[0]);
		output[1] = Integer.parseInt(str[1]);
		output[2] = Integer.parseInt(str[2]);
		
		int number = 0;
		int divisor = 0;
		for(number = output[0];number<=output[1];number++)
		{
			if(output[2]%number == 0)
			{
				divisor++;
			}
		}
		System.out.println(divisor);
		sc.close();

	}
}

