using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _20170409_AOJ
{
    class Program
    {
        static void Main(string[] args)
        {
            string line;
            List<int> outList = new List<int>();
            for (; (line = Console.ReadLine()) != "";)
            {
                string[] sArr = line.Split(' ');
                int a = int.Parse(sArr[0]);
                int b = int.Parse(sArr[1]);
                int c = int.Parse(sArr[2]);
                int count = 0;

                for (int i = a; i <= b; i++)
                {
                    if (c % i == 0)
                    {
                        count++;
                    }
                }

                outList.Add(count);
            }

            foreach (var v in outList)
            {
                Console.WriteLine(v);
            }

            Console.ReadLine();
        }
    }
}