for url in list_of_urls:
    urls_d[url] += 1
urls = [{'url': key, 'nbr': value} for key, value in list(urls_d.items())]
Python : List of dict, if exists increment a dict value, if not append a new dict