Do contractions count as one word?

Yes. "Don't", "she's", "we'd" each count as one word. The apostrophe-bound contraction is treated as a single token by every major word counter, just like Microsoft Word does.

Note that "do not" (uncontracted) counts as two. So contracting your prose can lower your word count even though the meaning is unchanged — useful when you're trimming to a limit.