import java.util.Scanner;

public class Main{

public static void main(String[] args) {

Scanner scan = new Scanner(System.in);
int p = scan.nextInt();
int q = scan.nextInt();
int w = scan.nextInt();
int counter = 0;
for (int i = p; i <= q;  i ++ ) {
if ( w % i == 0) {
counter++;
}
}
System.out.println(counter);

}
}
 import java.util.Scanner; Scanner java.util public class Main{

public static void main(String[] args) {

Scanner scan = new Scanner(System.in);
int p = scan.nextInt();
int q = scan.nextInt();
int w = scan.nextInt();
int counter = 0;
for (int i = p; i <= q;  i ++ ) {
if ( w % i == 0) {
counter++;
}
}
System.out.println(counter);

}
} Main public static void main(String[] args) {

Scanner scan = new Scanner(System.in);
int p = scan.nextInt();
int q = scan.nextInt();
int w = scan.nextInt();
int counter = 0;
for (int i = p; i <= q;  i ++ ) {
if ( w % i == 0) {
counter++;
}
}
System.out.println(counter);

} main {

Scanner scan = new Scanner(System.in);
int p = scan.nextInt();
int q = scan.nextInt();
int w = scan.nextInt();
int counter = 0;
for (int i = p; i <= q;  i ++ ) {
if ( w % i == 0) {
counter++;
}
}
System.out.println(counter);

} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int p = scan.nextInt(); p scan.nextInt() scan.nextInt scan int q = scan.nextInt(); q scan.nextInt() scan.nextInt scan int w = scan.nextInt(); w scan.nextInt() scan.nextInt scan int counter = 0; counter 0 for (int i = p; i <= q;  i ++ ) {
if ( w % i == 0) {
counter++;
}
} int i = p; int i = p; i p i <= q i q i ++ i ++ i {
if ( w % i == 0) {
counter++;
}
} {
if ( w % i == 0) {
counter++;
}
} if ( w % i == 0) {
counter++;
} w % i == 0 w % i w i 0 {
counter++;
} counter++ counter System.out.println(counter) System.out.println System.out System System.out counter String[] args args public class Main{

public static void main(String[] args) {

Scanner scan = new Scanner(System.in);
int p = scan.nextInt();
int q = scan.nextInt();
int w = scan.nextInt();
int counter = 0;
for (int i = p; i <= q;  i ++ ) {
if ( w % i == 0) {
counter++;
}
}
System.out.println(counter);

}
} public class Main{

public static void main(String[] args) {

Scanner scan = new Scanner(System.in);
int p = scan.nextInt();
int q = scan.nextInt();
int w = scan.nextInt();
int counter = 0;
for (int i = p; i <= q;  i ++ ) {
if ( w % i == 0) {
counter++;
}
}
System.out.println(counter);

}
} Main
import java.util.Scanner;

public class Main{

public static void main(String[] args) {

Scanner scan = new Scanner(System.in);
int p = scan.nextInt();
int q = scan.nextInt();
int w = scan.nextInt();
int counter = 0;
for (int i = p; i <= q;  i ++ ) {
if ( w % i == 0) {
counter++;
}
}
System.out.println(counter);

}
}

