#include <stdio.h>
int main()
{
int a, b ,c, d, e, f;
d = 0 ;
e = 0 ;
f = 0 ;
scanf("%d %d %d",&a, &b, &c);
if(a > b)
{ d = a;
  a = b;
  b = d;
}
while(a <= b)
{
  e = c % a;
  if(e == 0){
  f++;
 }
  a++;
}
printf("%d\n",f);
 
return 0 ;
}
printf("%d",f);
 
return 0 ;
}
