using System;
using System.Linq;

namespace AizuOnlineJudgement.ITP1_3_D
{
	public static class Program
	{
		public static void Main (string[] args)
		{
			var abc = Console.ReadLine ().Split (' ').Select (s => int.Parse (s)).ToArray ();
			Console.WriteLine (Enumerable.Range (abc[0], abc[1] - abc[0]).Where (d => abc[2] % d == 0).Count ());
		}
	}
}

