The character count is the length of the text, including spaces and line breaks. The count without spaces removes whitespace only. Words split on any whitespace, so a hyphenated word stays one word.
A sentence is the text up to . ! or ? or the final fragment if you did not add punctuation. Paragraphs are blocks separated by a blank line. This will not match a publisher that counts Markdown as rendered words.