import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args)  {

		Scanner scanner = new Scanner( System.in );

		ArrayList<Integer> nums = new ArrayList<Integer>();

		int a = Integer.parseInt( scanner.next() );
		int b = Integer.parseInt( scanner.next() );
		int c = Integer.parseInt( scanner.next() );

		for ( int i = 1; i <= c; i++ ) {
			if ( c % i == 0 ) {
				nums.add( i );
			}
		}

		int count = 0;
		for ( int num : nums ) {
			if ( num >= a && num <= b ) {
				count++;
			}
		}

		System.out.println( count );

		scanner.close();
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args)  {

		Scanner scanner = new Scanner( System.in );

		ArrayList<Integer> nums = new ArrayList<Integer>();

		int a = Integer.parseInt( scanner.next() );
		int b = Integer.parseInt( scanner.next() );
		int c = Integer.parseInt( scanner.next() );

		for ( int i = 1; i <= c; i++ ) {
			if ( c % i == 0 ) {
				nums.add( i );
			}
		}

		int count = 0;
		for ( int num : nums ) {
			if ( num >= a && num <= b ) {
				count++;
			}
		}

		System.out.println( count );

		scanner.close();
	}
} Main public static void main(String[] args)  {

		Scanner scanner = new Scanner( System.in );

		ArrayList<Integer> nums = new ArrayList<Integer>();

		int a = Integer.parseInt( scanner.next() );
		int b = Integer.parseInt( scanner.next() );
		int c = Integer.parseInt( scanner.next() );

		for ( int i = 1; i <= c; i++ ) {
			if ( c % i == 0 ) {
				nums.add( i );
			}
		}

		int count = 0;
		for ( int num : nums ) {
			if ( num >= a && num <= b ) {
				count++;
			}
		}

		System.out.println( count );

		scanner.close();
	} main {

		Scanner scanner = new Scanner( System.in );

		ArrayList<Integer> nums = new ArrayList<Integer>();

		int a = Integer.parseInt( scanner.next() );
		int b = Integer.parseInt( scanner.next() );
		int c = Integer.parseInt( scanner.next() );

		for ( int i = 1; i <= c; i++ ) {
			if ( c % i == 0 ) {
				nums.add( i );
			}
		}

		int count = 0;
		for ( int num : nums ) {
			if ( num >= a && num <= b ) {
				count++;
			}
		}

		System.out.println( count );

		scanner.close();
	} Scanner scanner = new Scanner( System.in ); scanner new Scanner( System.in ) ArrayList<Integer> nums = new ArrayList<Integer>(); nums new ArrayList<Integer>() int a = Integer.parseInt( scanner.next() ); a Integer.parseInt( scanner.next() ) Integer.parseInt Integer scanner.next() scanner.next scanner int b = Integer.parseInt( scanner.next() ); b Integer.parseInt( scanner.next() ) Integer.parseInt Integer scanner.next() scanner.next scanner int c = Integer.parseInt( scanner.next() ); c Integer.parseInt( scanner.next() ) Integer.parseInt Integer scanner.next() scanner.next scanner for ( int i = 1; i <= c; i++ ) {
			if ( c % i == 0 ) {
				nums.add( i );
			}
		} int i = 1; int i = 1; i 1 i <= c i c i++ i++ i {
			if ( c % i == 0 ) {
				nums.add( i );
			}
		} {
			if ( c % i == 0 ) {
				nums.add( i );
			}
		} if ( c % i == 0 ) {
				nums.add( i );
			} c % i == 0 c % i c i 0 {
				nums.add( i );
			} nums.add( i ) nums.add nums i int count = 0; count 0 for ( int num : nums ) {
			if ( num >= a && num <= b ) {
				count++;
			}
		} int num nums {
			if ( num >= a && num <= b ) {
				count++;
			}
		} {
			if ( num >= a && num <= b ) {
				count++;
			}
		} if ( num >= a && num <= b ) {
				count++;
			} num >= a && num <= b num >= a num a num <= b num b {
				count++;
			} count++ count System.out.println( count ) System.out.println System.out System System.out count scanner.close() scanner.close scanner String[] args args public class Main {

	public static void main(String[] args)  {

		Scanner scanner = new Scanner( System.in );

		ArrayList<Integer> nums = new ArrayList<Integer>();

		int a = Integer.parseInt( scanner.next() );
		int b = Integer.parseInt( scanner.next() );
		int c = Integer.parseInt( scanner.next() );

		for ( int i = 1; i <= c; i++ ) {
			if ( c % i == 0 ) {
				nums.add( i );
			}
		}

		int count = 0;
		for ( int num : nums ) {
			if ( num >= a && num <= b ) {
				count++;
			}
		}

		System.out.println( count );

		scanner.close();
	}
} public class Main {

	public static void main(String[] args)  {

		Scanner scanner = new Scanner( System.in );

		ArrayList<Integer> nums = new ArrayList<Integer>();

		int a = Integer.parseInt( scanner.next() );
		int b = Integer.parseInt( scanner.next() );
		int c = Integer.parseInt( scanner.next() );

		for ( int i = 1; i <= c; i++ ) {
			if ( c % i == 0 ) {
				nums.add( i );
			}
		}

		int count = 0;
		for ( int num : nums ) {
			if ( num >= a && num <= b ) {
				count++;
			}
		}

		System.out.println( count );

		scanner.close();
	}
} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args)  {

		Scanner scanner = new Scanner( System.in );

		ArrayList<Integer> nums = new ArrayList<Integer>();

		int a = Integer.parseInt( scanner.next() );
		int b = Integer.parseInt( scanner.next() );
		int c = Integer.parseInt( scanner.next() );

		for ( int i = 1; i <= c; i++ ) {
			if ( c % i == 0 ) {
				nums.add( i );
			}
		}

		int count = 0;
		for ( int num : nums ) {
			if ( num >= a && num <= b ) {
				count++;
			}
		}

		System.out.println( count );

		scanner.close();
	}
}