SELECT count(DISTINCT rank) FROM captain
Count the number of different ranks of captain.
SELECT count ( DISTINCT rank ) FROM captain
select count ( distinct rank ) from captain
Count the number of different ranks of captain .