<human>:  How did the court rule in the case Gideon v. Wainwright?
<bot>: The court ruled that the Sixth Amendment guarantees the right to counsel in criminal cases. The court also ruled that the right to counsel is not limited to the trial stage, but also applies to the appeal stage.