I currently have a dictionary of dictionaries in Python. They may look something like this:

```
stocks = {
    "VPER": {
        "mentions": 6,
        "score": 120,
        "currentPrice": 0.0393,
    },
    "APPL": {
        "mentions": 16,
        "score": 120,
        "currentPrice": 0.0393,
    },
    "NIO": {
        "mentions": 36,
        "score": 120,
        "currentPrice": 0.0393,
    }
}

```

What I am trying to do is look through the nested dictionaries and count how many times `mentions` value is a duplicate, then if that count is 10 remove the nested dictionary (APPL, NIO and so on).

If I had `NIO, APPL, TSLA, EPR, EKG, LPD, TTL, AGR, JKR, POP` as nested dictionaries and they each had their `mentions` key set to a value of `5` then I would want to remove them all from the `stocks` dictionary. Similarly if I had all of those as nested dictionaries and their mentions count was 7, they would be removed.

So, rather than specifying the value of mentions, I am simply trying to count how many times mentions is the same value in a nested dictionary and if that count is 10 or more, delete that entire nested dictionary from `stocks`.

In a previous question I was shown how to find nested dictionaries that contained a specific mention count and then remove them like this:

```
counter = sum(value["mentions"] == 5 for key, value in stocks.items())
if counter > 10:
    stocks = {key: value for key, value in stocks.items() if value["mentions"] != 5}

```

However, I need to not have to specify the mentions value.