<s>[INST] Write a SQL code to count the number of times riders called merchants during deliveries.  [/INST] SELECT COUNT(*) AS total_merchant_calls FROM order_transaction.transaction_detail_deprecated WHERE rider_calledmerchanttime IS NOT NULL; </s>