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