using System;
using System.Linq;

namespace Aizu
{
    class OnlineJudge
    {
        public static void Main()
        {
            var input = Console.ReadLine().Split().Select(p => int.Parse(p)).ToArray();
            Console.WriteLine(Enumerable.Range(input[0], input[1] - input[0]).Count(p => (input[2] % p) == 0));
        }
    }
}