input: Write a function to count the total number of words on a web page after removing scripts and styles using BeautifulSoup.
  assert count_words("https://www.example.com") > 0  # assuming the page has content
  assert count_words("https://www.wikipedia.org") > 1000  # assuming Wikipedia's main page has more than 1000 words
  assert count_words("https://www.google.com") > 100  # assuming Google's main page has more than 100 words
output: def count_words(url):
      import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
      
      for script_or_style in soup(['script', 'style']):
          script_or_style.decompose()
  
      text = soup.get_text()
      words = text.split()
      
      return len(words)