Added the countWordsInHTML function to the util module.