Implemented the count_words modifier

This also uses boost::regex..