How many classes are there? | Did  you  mean  the number of distinct  type classes of ships? | yes
select count (  distinct Class )  from Ship
number of distinct type classes of ships refers to COUNT(DISTINCT Class);