<head> <h1> <head> <h1>Word Count</h1> </head> <body> <script> alert(prompt("Enter a string").split(' ').length); </script> </body> </h1> </head>