The 6th Amendment states that one has the right to have counsel for one's defense in a trial, but it doesn't say one must be provided (that was established in a landmark Supreme Court case) nor that they are necessarily competent.
Here's a look at indigent defense in the states.
- Click here for it.