Change host order to network order for set_count and other