'use strict';
(function(stdin) {

  var inputs  = stdin.toString().trim().split('\n');
  var cols = inputs[0].split(' ');

  var min = parseInt(cols[0]);
  var max = parseInt(cols[1]);
  var num = parseInt(cols[2]);

  function isDivisable(diviser) {
    return num % diviser === 0;
  }

  var diviser = [];

  for(var i = min ; i < max+1 ; i++){
    if(isDivisable(i)){diviser.push(i);}
  }

  console.log(diviser.length);

}(require('fs').readFileSync('/dev/stdin', 'utf8')));