Count occurrences of key in nested dictionary with same value then delete if occurrence more than x with python

I currently have a dictionary of dictionaries in Python. They may lo0ok 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 dictionaries and count how many times mentions equals 5, then if that count is 10 remove the nested dictionary (APPL, NIO and so on). So 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.

I am not really sure how to go about this, any documentation, advice or examples would be highly appreciated.

CLARIFIED LOGIC: If there are ten occurrences of mentions: 5 then delete all nested dictionaries where the mentions are equal to five.

Answer

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}