“one two” is two words, seven characters, and six characters once the space is removed. A hyphenated word stays one word in this counter. An emoji or a punctuation mark counts as a character and does not, by itself, split words unless spaces do.
Markdown, HTML tags, and citation lines count if they are in the box. If the assignment wants the essay only, delete the extras first. The counter does not know which words are yours.