using System;

namespace AizuOnlineJudge
{
    class Program
    {
        static void Main(string[] args)
        {
            var nums = Converter(Console.ReadLine());
            Console.WriteLine(Calc(nums));
        }

        static int[] Converter(string str)
        {
            return Array.ConvertAll(str.Split(' '), int.Parse);
        }

        static int Calc(int[] array)
        {
            int count = 0;
            for (int i = array[0]; i < array[1]; i++)
                if (array[2] % i == 0) count++;
            return count;
        }
    }
}
