The relationship between population growth and global warming

Consider the relationship between population growth and global warming. Which countries are the biggest contributors to global warming (or specifically the increase of carbon in the atmosphere)? Is there a direct relationship between the population of these countries and the amount of carbon emitted by these countries? Is controlling population growth necessarily a cure for global warming?