def get_result_count(parameters):
    """Returns the number of results and the response index."""
    count, i = 0, 0
    for i, parameter in enumerate(parameters):
        if 'response' in parameter:
            count = parameter['response']['numFound']
            break
    return count, i