Add cart_get_number_of_items function