Court house weddings

Ma

When you get married in a court house do you need 2 witnesses?

How does this work? Advice and tips please!