How many distinct transaction types are used in the transactions?
select count(distinct transaction_type_code) from transactions