swid_inventory object has a get_count method