Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
### Context:
CREATE TABLE captain (rank VARCHAR)
### Question:
How many captains are in each rank?
### Answer:
SELECT COUNT(*), rank FROM captain GROUP BY rank