import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    try (Scanner scanner = new Scanner(System.in)) {
      final int start = scanner.nextInt();
      final int end   = scanner.nextInt();
      final int c     = scanner.nextInt();
      int counter = 0;
      for (int i = start; i <= end; i++) {
        if (c % i == 0) {
          counter++;
        }
      }
      System.out.println(counter);
    }
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    try (Scanner scanner = new Scanner(System.in)) {
      final int start = scanner.nextInt();
      final int end   = scanner.nextInt();
      final int c     = scanner.nextInt();
      int counter = 0;
      for (int i = start; i <= end; i++) {
        if (c % i == 0) {
          counter++;
        }
      }
      System.out.println(counter);
    }
  }
} Main public static void main(String[] args) {
    try (Scanner scanner = new Scanner(System.in)) {
      final int start = scanner.nextInt();
      final int end   = scanner.nextInt();
      final int c     = scanner.nextInt();
      int counter = 0;
      for (int i = start; i <= end; i++) {
        if (c % i == 0) {
          counter++;
        }
      }
      System.out.println(counter);
    }
  } main {
    try (Scanner scanner = new Scanner(System.in)) {
      final int start = scanner.nextInt();
      final int end   = scanner.nextInt();
      final int c     = scanner.nextInt();
      int counter = 0;
      for (int i = start; i <= end; i++) {
        if (c % i == 0) {
          counter++;
        }
      }
      System.out.println(counter);
    }
  } try (Scanner scanner = new Scanner(System.in)) {
      final int start = scanner.nextInt();
      final int end   = scanner.nextInt();
      final int c     = scanner.nextInt();
      int counter = 0;
      for (int i = start; i <= end; i++) {
        if (c % i == 0) {
          counter++;
        }
      }
      System.out.println(counter);
    } {
      final int start = scanner.nextInt();
      final int end   = scanner.nextInt();
      final int c     = scanner.nextInt();
      int counter = 0;
      for (int i = start; i <= end; i++) {
        if (c % i == 0) {
          counter++;
        }
      }
      System.out.println(counter);
    } Scanner scanner = new Scanner(System.in) Scanner scanner = new Scanner(System.in) new Scanner(System.in) final int start = scanner.nextInt(); start scanner.nextInt() scanner.nextInt scanner final int end   = scanner.nextInt(); end scanner.nextInt() scanner.nextInt scanner final int c     = scanner.nextInt(); c scanner.nextInt() scanner.nextInt scanner int counter = 0; counter 0 for (int i = start; i <= end; i++) {
        if (c % i == 0) {
          counter++;
        }
      } int i = start; int i = start; i start i <= end i end i++ i++ i {
        if (c % i == 0) {
          counter++;
        }
      } {
        if (c % i == 0) {
          counter++;
        }
      } if (c % i == 0) {
          counter++;
        } c % i == 0 c % i c 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) {
    try (Scanner scanner = new Scanner(System.in)) {
      final int start = scanner.nextInt();
      final int end   = scanner.nextInt();
      final int c     = scanner.nextInt();
      int counter = 0;
      for (int i = start; i <= end; i++) {
        if (c % i == 0) {
          counter++;
        }
      }
      System.out.println(counter);
    }
  }
} public class Main {
  public static void main(String[] args) {
    try (Scanner scanner = new Scanner(System.in)) {
      final int start = scanner.nextInt();
      final int end   = scanner.nextInt();
      final int c     = scanner.nextInt();
      int counter = 0;
      for (int i = start; i <= end; i++) {
        if (c % i == 0) {
          counter++;
        }
      }
      System.out.println(counter);
    }
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    try (Scanner scanner = new Scanner(System.in)) {
      final int start = scanner.nextInt();
      final int end   = scanner.nextInt();
      final int c     = scanner.nextInt();
      int counter = 0;
      for (int i = start; i <= end; i++) {
        if (c % i == 0) {
          counter++;
        }
      }
      System.out.println(counter);
    }
  }
}