how many factions were involved in the battles fought by ansar al-sharia ?
SELECT DISTINCT COUNT attr_open var_uri attr_close where brack_open dbr_Ansar_al-Sharia_ attr_open Libya attr_close dbp_battles var_x sep_dot var_x dbp_combatant var_uri brack_close