return total removed count from trim_to_size function