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