# Count the number of good and bad parts label_counts = data['Label'].value_counts() # Display the results print("Number of Good and Bad Parts:") print(label_counts)