"As well" is two words, as the quotation marks group all the shit between them into one phrase, and that phrase is made up of two words.
"As" and "well" are two words, as are "donkey" and "pencil", but that sentence implies nothing about their use when grouped together.