How many times did the peasants and city dwellers defeat the troops of the French count of Armagnac?
return the  French count of Armagnac ;return the  troops of #1 ;return defeats from  the  peasants and  city dwellers of #2 ;return number of  #3
['select', 'project', 'project', 'aggregate']