
    Design a function for a medication adherence system that analyzes a patient's medication schedule up to n consecutive days and determines how many critical monitoring checkpoints should be established, where a checkpoint is needed on days that correspond to prime numbers. The function should return the total count of these checkpoint days that occur before the given schedule duration.
    

    
def count_Primes_nums(n):
    """
    Design a function for a medication adherence system that analyzes a patient's medication schedule up to n consecutive days and determines how many critical monitoring checkpoints should be established, where a checkpoint is needed on days that correspond to prime numbers. The function should return the total count of these checkpoint days that occur before the given schedule duration.
    

    """
def count_Primes_nums(n):
    """
    Design a function for a medication adherence system that analyzes a patient's medication schedule up to n consecutive days and determines how many critical monitoring checkpoints should be established, where a checkpoint is needed on days that correspond to prime numbers. The function should return the total count of these checkpoint days that occur before the given schedule duration.
    

    """
    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