In Google Docs: Tools → Word count, or use the keyboard shortcut Ctrl+Shift+C (Cmd+Shift+C on Mac). The dialog shows pages, words, characters with spaces, and characters without spaces.
Tick "Display word count while typing" inside that dialog to see a live count in the bottom-left of the editor.
Read the full walkthrough: Where to find word count in Google Docs.