Question: Count the number of captains that have each rank.
SQL: SELECT count(*) ,  rank FROM captain GROUP BY rank