Correct discount calculation in WooCommerce. get_item_count() includes quantities so just count  instead. #375