count the total religions followed by the ones living in royal palace of tripoli .
SELECT DISTINCT COUNT attr_open var_uri attr_close where brack_open var_x dbp_residence dbr_Royal_Palace_of_Tripoli sep_dot var_x dbp_religion var_uri brack_close