get_quantity now also works for tables q, unorm