import requests


def get_number_of_records(parameters):
    """
    :param parameters: Dictionary with parameters of query to Zenodo API (dict)
    :return: Number of records retrieved from the query (int)
    """
    response_hits = requests.get('https://zenodo.org/api/records/', params=parameters)
    hits = response_hits.json()['hits']['total']
    return hits