import java.util.ArrayList;
import java.util.Scanner;

public class Main {
	public static int constraints1(int a,int b,int c){
		int result1 = 0;
		if(0 < a || a <= 10000 || 0 < b || b <= 10000 || 0 < c || c<= 10000 ){ //a,b,c????????¶??????(??????????????´???)
			result1 = 1;
		}
		else{
			result1 = 0; //?????????????????¨???
		}
		return result1;
	}
	public static int constraints2(int a,int b){
		int result2 = 0;
		if(b-a >= 0){//a<=b????????????????????¶??????
			result2 = 1;
		}
		else{
			result2 = 0; //?????????????????¨???
		}
		return result2;
	}
	public static void main(String[] args) {
		/**
		 * ?????°?????£?¨?
		 */
		int a,b,c;
		int f=0; //?????????
		int count=0;
		int len1,len2;

		/**
		 * ???????????£?¨?
		 */
		ArrayList<String> st = new ArrayList<String>();
		ArrayList<Integer> parse = new ArrayList<Integer>();
		ArrayList<Integer> bet = new ArrayList<Integer>();
		/**
		 * ??\?????¨????????????????´?
		 */
		Scanner scan = new Scanner(System.in);
		for(int i = 0; i < 3; i++){ //??\?????´??°???3???
		st.add(scan.next());
		}
		len1 = st.size(); //?????????????´???°

		/**
		 * String???int??????,int???????????????????´?
		 */
		a = Integer.parseInt(st.get(0));
		parse.add(a);
		b = Integer.parseInt(st.get(1));
		parse.add(b);
		c = Integer.parseInt(st.get(2));
		parse.add(c);
		/**
		 * ???????????????
		 */
		if(constraints1(a,b,c) == 0){
			System.out.println("a,b,c?????????1~10000??§??\?????????????????????.???????????????.");
			System.exit(0);;
		}
		if(constraints2(a,b) == 0){
			System.out.println("a,b?????????a<=b??§??\?????????????????????.???????????????.");
			System.exit(0);;
		}
		/**
		 * ????????\?¨?
		 */
		for(f = a; f <= b; f++){ //a??????b???????????°???(a???b???????????????)
			bet.add(f); //????????°???????????????int?????????????´?
		}
		len2 = bet.size();

		for(int j = 0;j < len2; ++j){
			if(c % bet.get(j) == 0){ //c????????£?????¨???????????????0???????????????????´???°
				++count;
			}
		}
		System.out.println(count);
	}

}
/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz