To me, that's OK in informal English, but otherwise I'd avoid it by rewording. eg This sentence has three 'and's. ===> This sentence uses the word 'and' three times.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.