Create a program in Python that takes a website URL as input and returns the number of HTML tags in the page.
URL: https://www.example.com
import requests
from bs4 import BeautifulSoup

def count_tags(url):
    r = requests.get(url)
    soup = BeautifulSoup(r.text, 'html.parser')
    count = len(soup.find_all())
    return count