How many different captain ranks are there?
select count(distinct rank) from captain