title: Restrict text input to only allow five (5) words in PHP
body: <p>I want to know how I can allow only five (5) words on text input using PHP. </p>
  
  <p>I know that I can use the <code>strlen</code> function for character count, but I was wondering how I can do it for words.</p>