print(('remove failed: ', removed_failed))
print(('min: ', min(counts.values())))
print(('max: ', max(counts.values())))
print(('mean: ', mean(list(counts.values()))))
How to randomly delete a number of lines from a big file?