SELECT count(*) ,  rank FROM captain GROUP BY rank
Count the number of captains that have each rank.
SELECT count ( * ) , rank FROM captain GROUP BY rank
select count ( * ) , rank from captain group by rank
Count the number of captains that have each rank .