Count the number of shops for each unique user role code associated with the shop.

SELECT shop_user_role_code, COUNT(*) AS total_shops_per_user_role_code
FROM order_transaction.transaction_detail_deprecated
GROUP BY shop_user_role_code;