
    Given a vehicle's mileage threshold for major inspections, determine the number of optimal intermediate inspection points that should be scheduled before reaching this threshold, where each optimal point is identified by being a prime-number mileage mark. Your function should take in the mileage threshold as input and return the count of these optimal inspection points that occur before reaching the threshold.
    

    
def count_Primes_nums(n):
    """
    Given a vehicle's mileage threshold for major inspections, determine the number of optimal intermediate inspection points that should be scheduled before reaching this threshold, where each optimal point is identified by being a prime-number mileage mark. Your function should take in the mileage threshold as input and return the count of these optimal inspection points that occur before reaching the threshold.
    

    """
def count_Primes_nums(n):
    """
    Given a vehicle's mileage threshold for major inspections, determine the number of optimal intermediate inspection points that should be scheduled before reaching this threshold, where each optimal point is identified by being a prime-number mileage mark. Your function should take in the mileage threshold as input and return the count of these optimal inspection points that occur before reaching the threshold.
    

    """
    ctr = 0
    for num in range(n):
        if num <= 1:
            continue
        for i in range(2, num):
            if num % i == 0:
                break
        else:
            ctr += 1
    return ctr