-- UTIL FUNCTIONS ADDED: TO COUNT THE NUMBER OF CONTENT WORDS IN A SPAN