input: Write a python function to extract and count the number of clicks for each link from a given webpage and sort them in descending order.
  assert extract_and_sort_clicks('https://www.example.com/') == [('https://example.com/page1', 5), ('https://example.com/page2', 3), ('https://example.com/page3', 2)]
  assert extract_and_sort_clicks('https://www.example.com/') == [('https://example.com/home', 10), ('https://example.com/about', 7), ('https://example.com/contact', 3)]
output: def extract_and_sort_clicks(url):
      import requests
      from bs4 import BeautifulSoup
      from collections import Counter
  
      # Fetch the webpage content
      response = requests.get(url)
      content = response.content
  
      # Parse the webpage content with BeautifulSoup
      soup = BeautifulSoup(content, 'html.parser')
  
      # Find all anchor tags
      links = [a['href'] for a in soup.find_all('a', href=True)]
  
      # Count the occurrences of each link
      link_counts = Counter(links)
  
      # Sort the links by the number of clicks in descending order
      sorted_links = sorted(link_counts.items(), key=lambda x: x[1], reverse=True)
  
      return sorted_links