import java.lang.Math;
import java.util.ArrayList;
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sn = new Scanner(System.in);
        int a = sn.nextInt();
        int b = sn.nextInt();
        int c = sn.nextInt();
        int co = 0;
        for (int i = a; i <= b; i++) {
            if (c % i != 0) {
                continue;
            }
            co++;
        }
        System.out.println(co);
    }
} import java.lang.Math; Math java.lang import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        Scanner sn = new Scanner(System.in);
        int a = sn.nextInt();
        int b = sn.nextInt();
        int c = sn.nextInt();
        int co = 0;
        for (int i = a; i <= b; i++) {
            if (c % i != 0) {
                continue;
            }
            co++;
        }
        System.out.println(co);
    }
} Main public static void main(String[] args) {
        Scanner sn = new Scanner(System.in);
        int a = sn.nextInt();
        int b = sn.nextInt();
        int c = sn.nextInt();
        int co = 0;
        for (int i = a; i <= b; i++) {
            if (c % i != 0) {
                continue;
            }
            co++;
        }
        System.out.println(co);
    } main {
        Scanner sn = new Scanner(System.in);
        int a = sn.nextInt();
        int b = sn.nextInt();
        int c = sn.nextInt();
        int co = 0;
        for (int i = a; i <= b; i++) {
            if (c % i != 0) {
                continue;
            }
            co++;
        }
        System.out.println(co);
    } Scanner sn = new Scanner(System.in); sn new Scanner(System.in) int a = sn.nextInt(); a sn.nextInt() sn.nextInt sn int b = sn.nextInt(); b sn.nextInt() sn.nextInt sn int c = sn.nextInt(); c sn.nextInt() sn.nextInt sn int co = 0; co 0 for (int i = a; i <= b; i++) {
            if (c % i != 0) {
                continue;
            }
            co++;
        } int i = a; int i = a; i a i <= b i b i++ i++ i {
            if (c % i != 0) {
                continue;
            }
            co++;
        } {
            if (c % i != 0) {
                continue;
            }
            co++;
        } if (c % i != 0) {
                continue;
            } c % i != 0 c % i c i 0 {
                continue;
            } continue; co++ co System.out.println(co) System.out.println System.out System System.out co String[] args args
import java.lang.Math;
import java.util.ArrayList;
import java.util.Scanner;

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