import java.util.*;

class Main {
        public static void main(String args[]) {
                try (Scanner sc = new Scanner(System.in)) {
                        int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
                        int ans = 0;
                        for (int i = a; i <= b; i++) {
                                if (c % i == 0) {
                                        ans++;
                                }
                        }
                        System.out.println(ans);
                }
        }
} import java.util.*; util.* java class Main {
        public static void main(String args[]) {
                try (Scanner sc = new Scanner(System.in)) {
                        int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
                        int ans = 0;
                        for (int i = a; i <= b; i++) {
                                if (c % i == 0) {
                                        ans++;
                                }
                        }
                        System.out.println(ans);
                }
        }
} Main public static void main(String args[]) {
                try (Scanner sc = new Scanner(System.in)) {
                        int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
                        int ans = 0;
                        for (int i = a; i <= b; i++) {
                                if (c % i == 0) {
                                        ans++;
                                }
                        }
                        System.out.println(ans);
                }
        } main {
                try (Scanner sc = new Scanner(System.in)) {
                        int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
                        int ans = 0;
                        for (int i = a; i <= b; i++) {
                                if (c % i == 0) {
                                        ans++;
                                }
                        }
                        System.out.println(ans);
                }
        } try (Scanner sc = new Scanner(System.in)) {
                        int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
                        int ans = 0;
                        for (int i = a; i <= b; i++) {
                                if (c % i == 0) {
                                        ans++;
                                }
                        }
                        System.out.println(ans);
                } {
                        int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
                        int ans = 0;
                        for (int i = a; i <= b; i++) {
                                if (c % i == 0) {
                                        ans++;
                                }
                        }
                        System.out.println(ans);
                } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) int a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int ans = 0; ans 0 for (int i = a; i <= b; i++) {
                                if (c % i == 0) {
                                        ans++;
                                }
                        } int i = a; int i = a; i a i <= b i b i++ i++ i {
                                if (c % i == 0) {
                                        ans++;
                                }
                        } {
                                if (c % i == 0) {
                                        ans++;
                                }
                        } if (c % i == 0) {
                                        ans++;
                                } c % i == 0 c % i c i 0 {
                                        ans++;
                                } ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String args[] args
import java.util.*;

class Main {
        public static void main(String args[]) {
                try (Scanner sc = new Scanner(System.in)) {
                        int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
                        int ans = 0;
                        for (int i = a; i <= b; i++) {
                                if (c % i == 0) {
                                        ans++;
                                }
                        }
                        System.out.println(ans);
                }
        }
}