select count(*) from wf_transitions where workflow_key = :workflow_key and transition_name = :transition_name