added word counter changed helper