Added countWords helper to string manipulator

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Added word length support to text validator

Signed-off-by: Tom Wright <tom@inflatablecookie.com>