Question: How many flats in this table? | Do you mean the number of apartments whose type code is Flat? | Yes.
SQL: SELECT  count ( * )  from apartments where apt_type_code  = 'Flat'