public class Main {

    public static void main(String[] args) {
        final String line = readLine();
        System.out.println(calc(line));
    }

    protected static String calc(String input) {
        final int[] ia = split(input);

        final int a = ia[0];
        final int b = ia[1];
        final int c = ia[2];

        int count = 0;
        for (int i = a; i <= b; i++) {
            if ((c % i) == 0) {
                count++;
            }
        }

        return String.valueOf(count);
    }

    private static int[] split(String s) {
        final String[] s0 = s.split(" ");
        int[] ia = new int[s0.length];

        for (int i = 0; i < s0.length; i++) {
            ia[i] = Integer.parseInt(s0[i]);
        }

        return ia;
    }

    private static String readLine() {
        java.util.Scanner s = null;
        try {
            s = new java.util.Scanner(System.in);
            return s.nextLine();
        } finally {
            if (s != null) {
                s.close();
            }
        }
    }
} public class Main {

    public static void main(String[] args) {
        final String line = readLine();
        System.out.println(calc(line));
    }

    protected static String calc(String input) {
        final int[] ia = split(input);

        final int a = ia[0];
        final int b = ia[1];
        final int c = ia[2];

        int count = 0;
        for (int i = a; i <= b; i++) {
            if ((c % i) == 0) {
                count++;
            }
        }

        return String.valueOf(count);
    }

    private static int[] split(String s) {
        final String[] s0 = s.split(" ");
        int[] ia = new int[s0.length];

        for (int i = 0; i < s0.length; i++) {
            ia[i] = Integer.parseInt(s0[i]);
        }

        return ia;
    }

    private static String readLine() {
        java.util.Scanner s = null;
        try {
            s = new java.util.Scanner(System.in);
            return s.nextLine();
        } finally {
            if (s != null) {
                s.close();
            }
        }
    }
} Main public static void main(String[] args) {
        final String line = readLine();
        System.out.println(calc(line));
    } main {
        final String line = readLine();
        System.out.println(calc(line));
    } final String line = readLine(); line readLine() readLine System.out.println(calc(line)) System.out.println System.out System System.out calc(line) calc line String[] args args protected static String calc(String input) {
        final int[] ia = split(input);

        final int a = ia[0];
        final int b = ia[1];
        final int c = ia[2];

        int count = 0;
        for (int i = a; i <= b; i++) {
            if ((c % i) == 0) {
                count++;
            }
        }

        return String.valueOf(count);
    } calc {
        final int[] ia = split(input);

        final int a = ia[0];
        final int b = ia[1];
        final int c = ia[2];

        int count = 0;
        for (int i = a; i <= b; i++) {
            if ((c % i) == 0) {
                count++;
            }
        }

        return String.valueOf(count);
    } final int[] ia = split(input); ia split(input) split input final int a = ia[0]; a ia[0] ia 0 final int b = ia[1]; b ia[1] ia 1 final int c = ia[2]; c ia[2] ia 2 int count = 0; count 0 for (int i = a; i <= b; i++) {
            if ((c % i) == 0) {
                count++;
            }
        } int i = a; int i = a; i a i <= b i b i++ i++ i {
            if ((c % i) == 0) {
                count++;
            }
        } {
            if ((c % i) == 0) {
                count++;
            }
        } if ((c % i) == 0) {
                count++;
            } (c % i) == 0 (c % i) c i 0 {
                count++;
            } count++ count return String.valueOf(count); String.valueOf(count) String.valueOf String count String input input private static int[] split(String s) {
        final String[] s0 = s.split(" ");
        int[] ia = new int[s0.length];

        for (int i = 0; i < s0.length; i++) {
            ia[i] = Integer.parseInt(s0[i]);
        }

        return ia;
    } split {
        final String[] s0 = s.split(" ");
        int[] ia = new int[s0.length];

        for (int i = 0; i < s0.length; i++) {
            ia[i] = Integer.parseInt(s0[i]);
        }

        return ia;
    } final String[] s0 = s.split(" "); s0 s.split(" ") s.split s " " int[] ia = new int[s0.length]; ia new int[s0.length] s0.length s0 s0.length for (int i = 0; i < s0.length; i++) {
            ia[i] = Integer.parseInt(s0[i]);
        } int i = 0; int i = 0; i 0 i < s0.length i s0.length s0 s0.length i++ i++ i {
            ia[i] = Integer.parseInt(s0[i]);
        } {
            ia[i] = Integer.parseInt(s0[i]);
        } ia[i] = Integer.parseInt(s0[i]) ia[i] ia i Integer.parseInt(s0[i]) Integer.parseInt Integer s0[i] s0 i return ia; ia String s s private static String readLine() {
        java.util.Scanner s = null;
        try {
            s = new java.util.Scanner(System.in);
            return s.nextLine();
        } finally {
            if (s != null) {
                s.close();
            }
        }
    } readLine {
        java.util.Scanner s = null;
        try {
            s = new java.util.Scanner(System.in);
            return s.nextLine();
        } finally {
            if (s != null) {
                s.close();
            }
        }
    } java.util.Scanner s = null; s null try {
            s = new java.util.Scanner(System.in);
            return s.nextLine();
        } finally {
            if (s != null) {
                s.close();
            }
        } {
            if (s != null) {
                s.close();
            }
        } if (s != null) {
                s.close();
            } s != null s null {
                s.close();
            } s.close() s.close s {
            s = new java.util.Scanner(System.in);
            return s.nextLine();
        } s = new java.util.Scanner(System.in) s new java.util.Scanner(System.in) return s.nextLine(); s.nextLine() s.nextLine s public class Main {

    public static void main(String[] args) {
        final String line = readLine();
        System.out.println(calc(line));
    }

    protected static String calc(String input) {
        final int[] ia = split(input);

        final int a = ia[0];
        final int b = ia[1];
        final int c = ia[2];

        int count = 0;
        for (int i = a; i <= b; i++) {
            if ((c % i) == 0) {
                count++;
            }
        }

        return String.valueOf(count);
    }

    private static int[] split(String s) {
        final String[] s0 = s.split(" ");
        int[] ia = new int[s0.length];

        for (int i = 0; i < s0.length; i++) {
            ia[i] = Integer.parseInt(s0[i]);
        }

        return ia;
    }

    private static String readLine() {
        java.util.Scanner s = null;
        try {
            s = new java.util.Scanner(System.in);
            return s.nextLine();
        } finally {
            if (s != null) {
                s.close();
            }
        }
    }
} public class Main {

    public static void main(String[] args) {
        final String line = readLine();
        System.out.println(calc(line));
    }

    protected static String calc(String input) {
        final int[] ia = split(input);

        final int a = ia[0];
        final int b = ia[1];
        final int c = ia[2];

        int count = 0;
        for (int i = a; i <= b; i++) {
            if ((c % i) == 0) {
                count++;
            }
        }

        return String.valueOf(count);
    }

    private static int[] split(String s) {
        final String[] s0 = s.split(" ");
        int[] ia = new int[s0.length];

        for (int i = 0; i < s0.length; i++) {
            ia[i] = Integer.parseInt(s0[i]);
        }

        return ia;
    }

    private static String readLine() {
        java.util.Scanner s = null;
        try {
            s = new java.util.Scanner(System.in);
            return s.nextLine();
        } finally {
            if (s != null) {
                s.close();
            }
        }
    }
} Main
public class Main {

    public static void main(String[] args) {
        final String line = readLine();
        System.out.println(calc(line));
    }

    protected static String calc(String input) {
        final int[] ia = split(input);

        final int a = ia[0];
        final int b = ia[1];
        final int c = ia[2];

        int count = 0;
        for (int i = a; i <= b; i++) {
            if ((c % i) == 0) {
                count++;
            }
        }

        return String.valueOf(count);
    }

    private static int[] split(String s) {
        final String[] s0 = s.split(" ");
        int[] ia = new int[s0.length];

        for (int i = 0; i < s0.length; i++) {
            ia[i] = Integer.parseInt(s0[i]);
        }

        return ia;
    }

    private static String readLine() {
        java.util.Scanner s = null;
        try {
            s = new java.util.Scanner(System.in);
            return s.nextLine();
        } finally {
            if (s != null) {
                s.close();
            }
        }
    }
}