select count(*) from wf_roles where workflow_key = :workflow_key and role_name = :role_name