if __FILE__ == $0
  i = 0
  while line = STDIN.gets
    tokens = line.chomp!.split.map!(&:to_i)
    a,b,c = *tokens
    cnt = 0
    for i in a..b
      cnt += 1 if c%i==0
    end
    puts cnt
  end
end