def Numbad(Index, Offset: int, Tr_Length: int):
    """ Returns the number of Label instances that finish after the end of the Epoch (Prevents Index errors propagating)

    Parameters:
    ----------
    Index: list
        A list of Lists containing the Start Times of only One type of Label in each Clipping.
        Also Note that the Starts Argument must be converted to the 1 KHz Sampling Frequency

    Offset: int

    Tr_Length: int

    return:
    -------
    count: int
        number of bad indexes
    """
    Count = 0
    for i in range(len(Index)):
        Count = Count + len([x for x in range(len(Index[i])) if Index[i][x] < (Offset + Tr_Length)])
    return Count