Passage: As of 2012, Malawi has 31 airports, 7 with paved runways (2 international airports) and 24 with unpaved runways. As of 2008, the country has 797 kilometres (495 mi) of railways, all narrow-gauge, and, as of 2003, 24,866 kilometres (15,451 mi) of roadways in various conditions, 6,956 kilometres (4,322 mi) paved and 8,495 kilometres (5,279 mi) unpaved. Malawi also has 700 kilometres (430 mi) of waterways on Lake Malawi and along the Shire River.

Question: How many airports did Malawi have as of 2012?
31