Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.

### Instruction:

Convert text to sql: For each party, return the name of the party and the number of delegates from that party. | county : county_id , county_name , population , zip_code | party : party_id , year , party , governor , lieutenant_governor , comptroller , attorney_general , us_senate | election : election_id , counties_represented , district , delegate , party , first_elected , committee | election.district = county.county_id | election.party = party.party_id | 

### Response:

select _ , count ( _ ) from _ group by _ | select party.party , count ( * ) from election join party on election.party = party.party_id group by election.party