GDP is composed of goods and services produced for sale in the market and also includes some nonmarket production, such as defense or education services provided by the government. An alternative concept, gross national product, or GNP, counts all the output of the residents of a country.