I want to disable by Button if the words in the EditText is less than 3 words, and if the words in the EditText are more than 3 words then I want to enable it so that it can
You can do what @Udaykiran says but use arg0.length() instead.
arg0.length()
The Editable also contains the length of the content of the TextEditor that was changed
Editable
TextEditor