Doubt in Class B Addressing

I understand the part that we have 65k addresses internally in Class B addressing, But How we are getting 16k class B addresses and class A have only 256 addresses.