delete @hosts{ grep { $hosts{$_} != $table_count } keys %hosts };