using System;
using System.Linq;

namespace ITP1 {
	class Program {
		public static void Main() {
			int[] input = Console.ReadLine()
				.Split()
				.Select(int.Parse)
				.ToArray();

			int result = Enumerable.Range(input[0], input[1] - input[0])
				.Where(i => input[2] % i == 0)
				.Count();
			Console.WriteLine(result);
		}

	}
}

