import requests


def get_n_annotations(url):
    """Get the number of playbills results annotations on the server."""
    r = requests.get(url)
    r.raise_for_status()
    n_annotations = r.json()['total']
    return n_annotations