def has_valid_number_pieces(configuration, original_permutation):
    """
    Checks if a certain chess configuration has the valid number of pieces
    """
    pieces = set(original_permutation)
    while len(pieces) > 0:
        piece = pieces.pop()
        if original_permutation.count(piece) != configuration.count(piece):
            return False
    return True