Eighteen states prohibit executions of mentally retarded individuals. Only two, Georgia and Maryland, did so when the Court handed down its 1989 ruling. In deciding Penry in 1989, Justice Sandra Day O’Connor, writing the opinion for the Court’s 5-to-4 majority, stated that there was no "national consensus" about whether to bar executions of people who are mentally retarded, and thus the Court did not hold the practice to be a violation of the Eighth Amendment’s ban against cruel and unusual punishment. The Court also said, however, that mental retardation should be considered as a mitigating factor when juries debate whether to sentence a criminal to death.