The US is one of very few Western nations that still uses the death penalty, although public support for it has gradually declined.