how many factions have fought when waifer of aquitaine was a commander ?
SELECT DISTINCT COUNT attr_open var_uri attr_close where brack_open var_x dbo_commander dbr_Waifer_of_Aquitaine sep_dot var_x dbp_combatant var_uri brack_close