<!DOCTYPE html>
<html>
<body>

<?php
echo str_word_count("I love Shanghai!");
?>
  
</body>
</html>