Add word counting
Generalize CountPopup