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 ship (flag VARCHAR)
### Question:
Group by ships by flag, and return number of ships that have each flag.
### Answer:
SELECT COUNT(*), flag FROM ship GROUP BY flag