how many factions have fought when yusuf ibn 'abd al-rahman al-fihri was a commander ?
SELECT DISTINCT COUNT attr_open var_uri attr_close where brack_open var_x dbo_commander dbr_Yusuf_ibn_'Abd_al-Rahman_al-Fihri sep_dot var_x dbp_combatant var_uri brack_close