//ITP1_3_D

using System;
using System.Collections.Generic;
/*using System.Linq;
using System.Text;
using System.Threading.Tasks;*/

class Program {
    static void Main(string[] args)
    {
        //?????????????????????????????????int??????iaaray????????????????????\

        int[] iarray = Array.ConvertAll<string, int>((Console.ReadLine().Split(' ')), delegate (string value)
        {
            return int.Parse(value);
        });

        int count = 0;

        for(int i = iarray[0]; i < iarray[1]; i++)
        {
            if ((iarray[2] % i) == 0)
                count++;
        }

        Console.WriteLine(count);
    }
}