def count_words(node)
     words = node.content.strip.split(/[[:space:]]+/).find_all {|w| w =~ /\w+/}
     words.size
   end
def count_words(node)
     words = node.content.strip.split(/[[:space:]]+/).find_all {|w| w =~ /\w+/}
     words.size
   end
Counts the words in the contents of the given node. _Word_ in this
 context means something that is delimited by _space_ charactes and starts with
 _word_ characters (in the regexp sense).