import requests


def quota(email, host="http://www.compbio.dundee.ac.uk/jpred4/cgi-bin/rest", suffix="quota", silent=False):
    """Check how many jobs you have already submitted on a given day
    (out of 1000 maximum allowed jobs per user per day).

    :param str email: E-mail address.
    :param str host: JPred host address.
    :param str suffix: Host address suffix.
    :param silent: Should the work be done silently?
    :type silent: :py:obj:`True` or :py:obj:`False`
    :return: Response.
    :rtype: requests.Response
    """
    quota_url = "{}/{}/{}".format(host, suffix, email)
    response = requests.get(quota_url)
    if not silent:
        print(response.text)
    return response