<Tr> <Th> ISO 3166 code </Th> <Td> CR </Td> </Tr> <Tr> <Th> Internet TLD </Th> <Td>. cr . co.cr </Td> </Tr> <P> Costa Rica (/ ˌkɒstə ˈriːkə / (listen); Spanish: (ˈkosta ˈrika); literally "Rich Coast"), officially the Republic of Costa Rica (Spanish: República de Costa Rica), is a country in Central America, bordered by Nicaragua to the north, the Caribbean Sea to the northeast, Panama to the southeast, the Pacific Ocean to the southwest, and Ecuador to the south of Cocos Island . It has a population of around 4.9 million, in a land area of 51,060 square kilometers (19,714 square miles). An estimated 333,980 people live in the capital and largest city, San José . </P> <P> The sovereign state of Costa Rica is a unitary presidential constitutional republic . It's known for its long - standing and stable democracy, and for its highly educated workforce, most of whom speak English . The country spends roughly 6.9% of its budget (2016) on education, compared to a global average of 4.4% . Its economy, once heavily dependent on agriculture, has diversified to include sectors such as finance, corporate services for foreign companies, pharmaceuticals, and ecotourism . Many foreign manufacturing and services companies operate in Costa Rica's Free Trade Zones (FTZ) where they benefit from investment and tax incentives . </P>

Costa rica is located between which two countries