An article is 100% a word. I’m baffled we’re even discussing this.
But as there is confusion, a word is “a single distinct meaningful element of speech or writing, used with others (or sometimes alone) to form a sentence and typically shown with a space on either side when written or printed”, to use the Google definition.