Whatsapp web was recently updated (1 or 2 days ago), and since then the notification count does not work any longer.
It seems that replacing
const elements = document.querySelectorAll('.CxUIE, .unread, ._0LqQ');
by
const elements = document.querySelectorAll('._31gEB');
fixes it, or at least it did in my case.