import java.io.*;

class Main
{
    public static void main (String[ ] args) throws Exception
    {
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        //StringBuffer sb = new StringBuffer();
        
        String[] strAry = (br.readLine()).split(" ");
        int a = Integer.parseInt(strAry[0]);
        int b = Integer.parseInt(strAry[1]);
        int c = Integer.parseInt(strAry[2]);
        
        int cnt = 0;
        for(int i = a; i <= b; i++)
        {
            if(0 == (c % i))
            {
                cnt++;
            }
        }
        System.out.println(cnt);
    }
} import java.io.*; io.* java class Main
{
    public static void main (String[ ] args) throws Exception
    {
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        //StringBuffer sb = new StringBuffer();
        
        String[] strAry = (br.readLine()).split(" ");
        int a = Integer.parseInt(strAry[0]);
        int b = Integer.parseInt(strAry[1]);
        int c = Integer.parseInt(strAry[2]);
        
        int cnt = 0;
        for(int i = a; i <= b; i++)
        {
            if(0 == (c % i))
            {
                cnt++;
            }
        }
        System.out.println(cnt);
    }
} Main public static void main (String[ ] args) throws Exception
    {
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        //StringBuffer sb = new StringBuffer();
        
        String[] strAry = (br.readLine()).split(" ");
        int a = Integer.parseInt(strAry[0]);
        int b = Integer.parseInt(strAry[1]);
        int c = Integer.parseInt(strAry[2]);
        
        int cnt = 0;
        for(int i = a; i <= b; i++)
        {
            if(0 == (c % i))
            {
                cnt++;
            }
        }
        System.out.println(cnt);
    } main {
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        //StringBuffer sb = new StringBuffer();
        
        String[] strAry = (br.readLine()).split(" ");
        int a = Integer.parseInt(strAry[0]);
        int b = Integer.parseInt(strAry[1]);
        int c = Integer.parseInt(strAry[2]);
        
        int cnt = 0;
        for(int i = a; i <= b; i++)
        {
            if(0 == (c % i))
            {
                cnt++;
            }
        }
        System.out.println(cnt);
    } BufferedReader br = new BufferedReader (new InputStreamReader (System.in)); br new BufferedReader (new InputStreamReader (System.in)) String[] strAry = (br.readLine()).split(" "); strAry (br.readLine()).split(" ") (br.readLine()).split (br.readLine()) br.readLine br " " int a = Integer.parseInt(strAry[0]); a Integer.parseInt(strAry[0]) Integer.parseInt Integer strAry[0] strAry 0 int b = Integer.parseInt(strAry[1]); b Integer.parseInt(strAry[1]) Integer.parseInt Integer strAry[1] strAry 1 int c = Integer.parseInt(strAry[2]); c Integer.parseInt(strAry[2]) Integer.parseInt Integer strAry[2] strAry 2 int cnt = 0; cnt 0 for(int i = a; i <= b; i++)
        {
            if(0 == (c % i))
            {
                cnt++;
            }
        } int i = a; int i = a; i a i <= b i b i++ i++ i {
            if(0 == (c % i))
            {
                cnt++;
            }
        } {
            if(0 == (c % i))
            {
                cnt++;
            }
        } if(0 == (c % i))
            {
                cnt++;
            } 0 == (c % i) 0 (c % i) c i {
                cnt++;
            } cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt String[ ] args args
import java.io.*;

class Main
{
    public static void main (String[ ] args) throws Exception
    {
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        //StringBuffer sb = new StringBuffer();
        
        String[] strAry = (br.readLine()).split(" ");
        int a = Integer.parseInt(strAry[0]);
        int b = Integer.parseInt(strAry[1]);
        int c = Integer.parseInt(strAry[2]);
        
        int cnt = 0;
        for(int i = a; i <= b; i++)
        {
            if(0 == (c % i))
            {
                cnt++;
            }
        }
        System.out.println(cnt);
    }
}